User:Max34/SourceRenewed: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 115: Line 115:
=== env_sound ===
=== env_sound ===
<p style="opacity:.6; margin-top:-8px">Old name: {{Code|preset=0|ambient_generic}}</p>
<p style="opacity:.6; margin-top:-8px">Old name: {{Code|preset=0|ambient_generic}}</p>
{{Note|Perhaps in the future it will be renamed to {{Code|preset=2|point_sound}}. Or not.}}
{{Note|Perhaps in the future it will be renamed to {{Code|preset=2|point_sound}}.}}
{{Todo|More documentation.}}
{{Todo|More documentation.}}


Line 218: Line 218:


== Logic Entities ==
== Logic Entities ==
{{Note|The parameter storing the coordinates in all logical entities will be removed in order to reduce the amount of information stored in the map. Also, for building logic in the new Hammer there will be a separate window (something in the style of a logical tree from the unreal engine).}}
=== logic_auto ===
=== logic_auto ===
* Not edict anymore.
{{Important|It was decided to remove this entity and transfer its functionality to the world itself. This is not currently implemented, so the entity still exists.}}
{{Todo|More documentation.}}




Line 692: Line 694:
* Trying to make engine code more readable.
* Trying to make engine code more readable.
** Replaced all<br>{{Code|strcmp}}, {{Code|stricmp}}, {{Code|_stricmp}}, {{Code|Q_strcmp}}, {{Code|V_strcmp}}, {{Code|Q_stricmp}}, {{Code|V_stricmp}}, {{Code|FStrEq}}, {{Code|V_strlen}}, {{Code|Q_strlen}} {{Code|V_strlen}}, {{Code|Q_strcasecmp}}, {{Code|Q_strncasecmp}}, {{Code|V_strncasecmp}}, {{Code|V_strcasecmp}}<br>with more understandable and optimal<br>{{Code|StringEmpty}}, {{Code|StringsEqual}}, {{Code|StringsEqualCaseless}}, {{Code|StringsPartsEqual}}, {{Code|StringsCompare}}, {{Code|StringsCompareCaseless}} and {{Code|StringLength}}.
** Replaced all<br>{{Code|strcmp}}, {{Code|stricmp}}, {{Code|_stricmp}}, {{Code|Q_strcmp}}, {{Code|V_strcmp}}, {{Code|Q_stricmp}}, {{Code|V_stricmp}}, {{Code|FStrEq}}, {{Code|V_strlen}}, {{Code|Q_strlen}} {{Code|V_strlen}}, {{Code|Q_strcasecmp}}, {{Code|Q_strncasecmp}}, {{Code|V_strncasecmp}}, {{Code|V_strcasecmp}}<br>with more understandable and optimal<br>{{Code|StringEmpty}}, {{Code|StringsEqual}}, {{Code|StringsEqualCaseless}}, {{Code|StringsPartsEqual}}, {{Code|StringsCompare}}, {{Code|StringsCompareCaseless}} and {{Code|StringLength}}.
* The {{Code|Worldspawn}} entity has been renamed to {{Code|World}} and will now be used as a full-fledged entity.
<!-- * Fixed {{Code|showinfo}} command. -->
<!-- * Fixed {{Code|showinfo}} command. -->

Revision as of 01:02, 14 October 2023

SR SourceRenewed (working title) is a project based on the Source 2013 Singleplayer Source 2013 Singleplayer. Adds some new and useful things to the engine and improves the existing ones. However, unlike Mapbase Mapbase, this project is not meant to be fully backward compatible with any Source branch. Made by Max_34.

Changes in the common class of all entities

Env Entities

env_sound

Old name: ambient_generic

Note.pngNote:Perhaps in the future it will be renamed to point_sound.
Todo: More documentation.


env_spark

Todo: More documentation.


Filter Entities

Cpp.pngCode Fix:Fixed a crash when the filters tries to check an already deleted entity. If the entity does not exist when checking, the comparison will be made with an empty value.

filter_class

Old name: filter_activator_class

filter_group

Old name: filter_activator_team

filter_name

Old name: filter_activator_name


Logic Entities

Note.pngNote:The parameter storing the coordinates in all logical entities will be removed in order to reduce the amount of information stored in the map. Also, for building logic in the new Hammer there will be a separate window (something in the style of a logical tree from the unreal engine).


logic_auto

Icon-Important.pngImportant:It was decided to remove this entity and transfer its functionality to the world itself. This is not currently implemented, so the entity still exists.


logic_autosave

Todo: More documentation.


logic_branch


logic_branch_manager

Old name: logic_branch_listener.

Cpp.pngCode Fix:Fixed a bug that caused the deleted logic_branch to be treated as false instead of removing it from the list.
Todo: More documentation.


logic_case

Todo: More documentation.


logic_compare


logic_console

New entity.

Todo: More documentation.


logic_relay


logic_string

New entity.

Todo: More documentation.


logic_timer

Todo: More documentation.


Math Entities

math_calculator

New entity.


math_color

New entity. Also combines the capabilities of math_colorblend.

Color constructor. Allows you to make color32 from separate integers. This color32 can be used as a whole or separately.

Todo: More documentation.


math_counter

Note.pngNote:The entity now uses a new optimization system. Since this system is not fully implemented, the entity is partially broken, for now.
Todo: More documentation.


math_remap

Todo: More documentation.

Deleted entities

Other

  • Minor optimization to reduce entdata usage.
  • Added more support for converting from one value format to another.
  • New Hammer (in development).
  • Trying to make engine code more readable.
    • Replaced all
      strcmp, stricmp, _stricmp, Q_strcmp, V_strcmp, Q_stricmp, V_stricmp, FStrEq, V_strlen, Q_strlen V_strlen, Q_strcasecmp, Q_strncasecmp, V_strncasecmp, V_strcasecmp
      with more understandable and optimal
      StringEmpty, StringsEqual, StringsEqualCaseless, StringsPartsEqual, StringsCompare, StringsCompareCaseless and StringLength.
  • The Worldspawn entity has been renamed to World and will now be used as a full-fledged entity.