User:Max34/SourceRenewed: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{DISPLAYTITLE:<b style="user-select:none; font-family:consolas; text-transform:uppercase"><span style="background:black; padding:0 3px; border-radius:6px;">Sou<span style="co...")
 
m (Max34 moved page SourceRenewed to User:Max34/SourceRenewed over redirect: I am returning my project to my personal subpage. It doesn't deserve a full page yet)
 
(17 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:<b style="user-select:none; font-family:consolas; text-transform:uppercase"><span style="background:black; padding:0 3px; border-radius:6px;">Sou<span style="color:rgb(208,48,48)">r</span>c<span style="color:rgb(208,48,48)">e</span></span><span style="color:rgb(208,48,48); margin-left:-3px"><span style="display:none">Re</span>newed</span></b>}}
{{DISPLAYTITLE:<b style="user-select:none; font-family:consolas; text-transform:uppercase"><span style="background:black; padding:0 3px; border-radius:6px;">Sou<span style="color:rgb(208,48,48)">r</span>c<span style="color:rgb(208,48,48)">e</span></span><span style="color:rgb(208,48,48); margin-left:-3px">Renewed</span></b>}}
<b style="pointer-events:none; user-select:none; font-family:consolas; font-size:15px; background:black; width:16px; height:16px; display:inline-flex; justify-content:center; align-items:center; border-radius:3px; line-height:0"><span style="color:white; position:relative; z-index:1">S</span><span style="color:rgb(208,48,48); margin-left:-3px">R</span></b> '''SourceRenewed''' (working title) is a project based on the {{Src13sp|4}}. Adds some new and useful things to the engine and improves the existing ones. However, unlike {{Mapbase|4}}, this project is not meant to be fully backward compatible with any Source branch. Made by [[User:Max34|Max_34]].
{{sr|4}} is a project based on the {{Src13sp|4.1}}. Adds some new and useful things to the engine and improves the existing ones. However, unlike {{Mapbase|4.1}}, this project is not meant to be fully backward compatible with any Source branch. Made by {{u|Max34}}.


== New entities and changes in existing entities ==
== Changes in the common class of all entities ==
=== Changes in the common class of all entities ===
{{Table
{{Table
| {{Table|tr|
| {{tr|
  {{Table|th|radius=3px 0 0 0| Parameters }}
  {{th|radius=3px 0 0 0| Parameters }}
  {{Table|th| Type }}
  {{th| Type }}
  {{Table|th| {{int:listfiles_description}} }}
  {{th| {{int:listfiles_description}} }}
  {{Table|th|radius=0 3px 0 0| Notes }}
  {{th|radius=0 3px 0 0| Notes }}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| {{Code|preset=1|Entity State}} }}
  {{td|align=center| {{Code|preset=1|Entity I/O State}} }}
  {{Table|td|align=center| choice }}
  {{td|align=center| choice }}
  {{Table|td| {{Code|preset=1|Disabled}} or {{Code|preset=1|Enabled}} (by default). Whether the entity is enabled or disabled when spawning. }}
  {{td| {{Code|preset=1|Enabled}} (by default) or {{Code|preset=1|Disabled}}. Whether the entity IO is enabled or disabled when spawning. }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|th| Inputs }}
  {{th| Inputs }}
  {{Table|th| Type }}
  {{th| Type }}
  {{Table|th| {{int:listfiles_description}} }}
  {{th| {{int:listfiles_description}} }}
  {{Table|th| Notes }}
  {{th| Notes }}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| {{Code|preset=1|Enable}} }}
  {{td|align=center| {{Code|preset=1|Enable I/O Interaction}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| Enables an entity. }}
  {{td| Enables an entity IO system. }}
  {{Table|td|rowspan=3| This entity state system is something new and has nothing to do with the deprecated "Start Disabled". For now, this only works with entities that have been reworked.<br>{{Todo}}<br>☐ Figure out if this “Read-only” is worth it, or is it better to disable any I/O interaction when the entity is disabled. }}
  {{td|rowspan=3| This entity state system is something new and has nothing to do with the deprecated “Start Disabled”. For now, this only works with entities that have been reworked. }}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| {{Code|preset=1|Toggle}} }}
  {{td|align=center| {{Code|preset=1|Toggle I/O Interaction}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| Toggles the state of an entity between enabled and disabled. }}
  {{td| Toggles the state of an entity I/O system between enabled and disabled. }}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| {{Code|preset=1|Disable}} }}
  {{td|align=center| {{Code|preset=1|Disable I/O Interaction}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| Disables an entity. When an entity is disabled, it becomes “Read-only”. }}
  {{td| Disables an entity I/O system. }}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| <s>{{Code|preset=0|SetTeam}}</s><br>{{Code|preset=1|SetGroup}} }}
  {{td|align=center| <s>{{Code|preset=0|SetTeam}}</s><br>{{Code|preset=1|Set Group}} }}
  {{Table|td|align=center| integer }}
  {{td|align=center| integer }}
  {{Table|td| Sets the group for the entity. By default, all entities are in group 0. }}
  {{td| Sets the group for the entity. By default, all entities are in group 0. }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| <s>{{Code|preset=0|FireUser1}}</s><br>{{Code|preset=1|FireCustom1}} }}
  {{td|align=center| <s>{{Code|preset=0|FireUser1}}</s><br>{{Code|preset=1|Fire Custom Event 1}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| Fires the {{Code|preset=1|OnCustom1}} event if the entity is enabled. }}
  {{td| Fires the {{Code|preset=1|On Custom Event 1}} event if the entity is enabled. }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| <s>{{Code|preset=0|FireUser2}}</s><br>{{Code|preset=1|FireCustom2}} }}
  {{td|align=center| <s>{{Code|preset=0|FireUser2}}</s><br>{{Code|preset=1|Fire Custom Event 2}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| Fires the {{Code|preset=1|OnCustom2}} event if the entity is enabled. }}
  {{td| Fires the {{Code|preset=1|On Custom Event 2}} event if the entity is enabled. }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| <s>{{Code|preset=0|FireUser3}}</s><br>{{Code|preset=1|FireCustom3}} }}
  {{td|align=center| <s>{{Code|preset=0|FireUser3}}</s><br>{{Code|preset=1|Fire Custom Event 3}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| Fires the {{Code|preset=1|OnCustom3}} event if the entity is enabled. }}
  {{td| Fires the {{Code|preset=1|On Custom Event 3}} event if the entity is enabled. }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| <s>{{Code|preset=0|FireUser4}}</s><br>{{Code|preset=1|FireCustom4}} }}
  {{td|align=center| <s>{{Code|preset=0|FireUser4}}</s><br>{{Code|preset=1|Fire Custom Event 4}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| Fires the {{Code|preset=1|OnCustom4}} event if the entity is enabled. }}
  {{td| Fires the {{Code|preset=1|On Custom Event 4}} event if the entity is enabled. }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|th| Outputs }}
  {{th| Outputs }}
  {{Table|th| Type }}
  {{th| Type }}
  {{Table|th| {{int:listfiles_description}} }}
  {{th| {{int:listfiles_description}} }}
  {{Table|th| Notes }}
  {{th| Notes }}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| {{Code|preset=1|OnSpawn}} }}
  {{td|align=center| {{Code|preset=1|On Spawn}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| Fired when the entity spawns. }}
  {{td| Fired when the entity spawns. }}
  {{Table|td| {{Todo}}<br>☐ Make sure this event happens at the right time. }}
  {{td| {{Todo}}<br>☐ Make sure this event happens at the right time. }}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| {{Code|preset=1|OnKilled}} }}
  {{td|align=center| {{Code|preset=1|On Killed}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| Fired when the entity has been deleted. }}
  {{td| Fired when the entity has been deleted. }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| <s>{{Code|preset=0|OnUser1}}</s><br>{{Code|preset=1|OnCustom1}} }}
  {{td|align=center| <s>{{Code|preset=0|OnUser1}}</s><br>{{Code|preset=1|On Custom Event 1}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| Fires in response to {{Code|preset=1|FireCustom1}} input. }}
  {{td| Fires in response to {{Code|preset=1|Fire Custom Event 1}} input. }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| <s>{{Code|preset=0|OnUser2}}</s><br>{{Code|preset=1|OnCustom2}} }}
  {{td|align=center| <s>{{Code|preset=0|OnUser2}}</s><br>{{Code|preset=1|On Custom Event 2}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| Fires in response to {{Code|preset=1|FireCustom2}} input. }}
  {{td| Fires in response to {{Code|preset=1|Fire Custom Event 2}} input. }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| <s>{{Code|preset=0|OnUser3}}</s><br>{{Code|preset=1|OnCustom3}} }}
  {{td|align=center| <s>{{Code|preset=0|OnUser3}}</s><br>{{Code|preset=1|On Custom Event 3}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| Fires in response to {{Code|preset=1|FireCustom3}} input. }}
  {{td| Fires in response to {{Code|preset=1|Fire Custom Event 3}} input. }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center|radius=0 0 0 3px| <s>{{Code|preset=0|OnUser4}}</s><br>{{Code|preset=1|OnCustom4}} }}
  {{td|align=center|radius=0 0 0 3px| <s>{{Code|preset=0|OnUser4}}</s><br>{{Code|preset=1|On Custom Event 4}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| Fires in response to {{Code|preset=1|FireCustom4}} input. }}
  {{td| Fires in response to {{Code|preset=1|Fire Custom Event 4}} input. }}
  {{Table|td|radius=0 0 3px 0}}
  {{td|radius=0 0 3px 0}}
}}
}}
}}
}}


 
== Env Entities ==
=== 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 124: Line 123:




== Filter Entities ==
{{Code 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.}}
<div style="display:flex; gap:28px">
<div>
=== filter_class ===
=== filter_class ===
<p style="opacity:.6; margin-top:-8px">Old name: {{Code|preset=0|filter_activator_class}}</p>
<p style="opacity:.6; margin-top:-8px">Old name: {{Code|preset=0|filter_activator_class}}</p>
{{Todo|More documentation.}}
</div>
 
<div>
 
=== filter_group ===
=== filter_group ===
<p style="opacity:.6; margin-top:-8px">Old name: {{Code|preset=0|filter_activator_team}}</p>
<p style="opacity:.6; margin-top:-8px">Old name: {{Code|preset=0|filter_activator_team}}</p>
{{Todo|More documentation.}}
</div>
<div>
=== filter_name ===
<p style="opacity:.6; margin-top:-8px">Old name: {{Code|preset=0|filter_activator_name}}</p>
</div>
</div>
 
{{Table
| {{tr|
  {{th|radius=3px 0 0 0| Parameters }}
  {{th| Type }}
  {{th| {{int:listfiles_description}} }}
  {{th|radius=0 3px 0 0| Notes }}
}}
{{tr|
  {{td|align=center| {{Code|preset=1|Filter}} }}
  {{td|align=center| string }}
  {{td| . }}
  {{td}}
}}
{{tr|
  {{td|align=center| {{Code|preset=1|Filtering Type}} }}
  {{td|align=center| choice }}
  {{td| . }}
  {{td}}
}}
{{tr|
  {{th| Inputs }}
  {{th| Type }}
  {{th| {{int:listfiles_description}} }}
  {{th| Notes }}
}}
{{tr|
  {{td|align=center| {{Code|preset=1|GetFilter}} }}
  {{td|align=center| void }}
  {{td| . }}
  {{td| “Read-only” event. }}
}}
{{tr|
  {{td|align=center| {{Code|preset=1|SetFilter}} }}
  {{td|align=center| string }}
  {{td| . }}
  {{td}}
}}
{{tr|
  {{td|align=center| {{Code|preset=1|FilterActivator}} }}
  {{td|align=center| void }}
  {{td| . }}
  {{td}}
}}
{{tr|
  {{td|align=center| {{Code|preset=1|FilterCaller}} }}
  {{td|align=center| void }}
  {{td| . }}
  {{td}}
}}
{{tr|
  {{th| Outputs }}
  {{th| Type }}
  {{th| {{int:listfiles_description}} }}
  {{th| Notes }}
}}
{{tr|
  {{td|align=center| {{Code|preset=1|OnGetFilter}} }}
  {{td|align=center| string }}
  {{td| . }}
  {{td| “Read-only” event. }}
}}
{{tr|
  {{td|align=center| {{Code|preset=1|OnFail}} }}
  {{td|align=center| void }}
  {{td| . }}
  {{td}}
}}
{{tr|
  {{td|align=center|radius=0 0 0 3px| {{Code|preset=1|OnPass}} }}
  {{td|align=center| void }}
  {{td| . }}
  {{td|radius=0 0 3px 0}}
}}
}}




=== filter_name ===
== Logic Entities ==
<p style="opacity:.6; margin-top:-8px">Old name: {{Code|preset=0|filter_activator_name}}</p>
{{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).}}
{{Todo|More documentation.}}




=== logic_auto ===
=== logic_auto ===
* Not edict anymore.
{{Important|It was decided to remove this entity and transfer its functionality to the world itself ({{Code|World}}). This is not currently implemented, so the entity still exists.}}
{{Todo|More documentation.}}




Line 150: Line 231:
=== logic_branch ===
=== logic_branch ===
{{Table
{{Table
| {{Table|tr|
| {{tr|
  {{Table|th|radius=3px 0 0 0| Parameters }}
  {{th|radius=3px 0 0 0| Parameters }}
  {{Table|th| Type }}
  {{th| Type }}
  {{Table|th| {{int:listfiles_description}} }}
  {{th| {{int:listfiles_description}} }}
  {{Table|th|radius=0 3px 0 0| Notes }}
  {{th|radius=0 3px 0 0| Notes }}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| {{Code|preset=1|Initial value}} }}
  {{td|align=center| {{Code|preset=1|Initial value}} }}
  {{Table|td|align=center| float }}
  {{td|align=center| float }}
  {{Table|td| Initial branch value. All negative numbers are {{Code|preset=1|false}}; all positive {{Code|preset=1|true}}; 0 depending on setting {{Code|preset=1|Treat 0 as}}. }}
  {{td| Initial branch value. All negative numbers are {{Code|preset=1|false}}; all positive {{Code|preset=1|true}}; 0 depending on setting {{Code|preset=1|Treat 0 as}}. }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| {{Code|preset=1|Treat 0 as}} }}
  {{td|align=center| {{Code|preset=1|Treat 0 as}} }}
  {{Table|td|align=center| choice }}
  {{td|align=center| choice }}
  {{Table|td| {{Code|preset=1|false}} (by default), {{Code|preset=1|indeterminate}} (for ternary mode) or {{Code|preset=1|true}}. }}
  {{td| {{Code|preset=1|false}} (by default), {{Code|preset=1|indeterminate}} (for ternary mode) or {{Code|preset=1|true}}. }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|th| Inputs }}
  {{th| Inputs }}
  {{Table|th| Type }}
  {{th| Type }}
  {{Table|th| {{int:listfiles_description}} }}
  {{th| {{int:listfiles_description}} }}
  {{Table|th| Notes }}
  {{th| Notes }}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| {{Code|preset=1|GetValue}} }}
  {{td|align=center| {{Code|preset=1|GetValue}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| . }}
  {{td| . }}
  {{Table|td| “Read-only” event. }}
  {{td| “Read-only” event. }}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| {{Code|preset=1|Test}} }}
  {{td|align=center| {{Code|preset=1|Test}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| . }}
  {{td| . }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| {{Code|preset=1|SetValue}} }}
  {{td|align=center| {{Code|preset=1|SetValue}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| . }}
  {{td| . }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| {{Code|preset=1|SetValueTest}} }}
  {{td|align=center| {{Code|preset=1|SetValueTest}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| . }}
  {{td| . }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| <s>{{Code|preset=0|Toggle}}</s><br>{{Code|preset=1|ToggleValue}} }}
  {{td|align=center| <s>{{Code|preset=0|Toggle}}</s><br>{{Code|preset=1|ToggleValue}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| . }}
  {{td| . }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| <s>{{Code|preset=0|ToggleTest}}</s><br>{{Code|preset=1|ToggleValueTest}} }}
  {{td|align=center| <s>{{Code|preset=0|ToggleTest}}</s><br>{{Code|preset=1|ToggleValueTest}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| . }}
  {{td| . }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|th| Outputs }}
  {{th| Outputs }}
  {{Table|th| Type }}
  {{th| Type }}
  {{Table|th| {{int:listfiles_description}} }}
  {{th| {{int:listfiles_description}} }}
  {{Table|th| Notes }}
  {{th| Notes }}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| {{Code|preset=1|OnGetValue}} }}
  {{td|align=center| {{Code|preset=1|OnGetValue}} }}
  {{Table|td|align=center| float }}
  {{td|align=center| float }}
  {{Table|td| . }}
  {{td| . }}
  {{Table|td| “Read-only” event. }}
  {{td| “Read-only” event. }}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| {{Code|preset=1|OnFalse}} }}
  {{td|align=center| {{Code|preset=1|OnFalse}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| . }}
  {{td| . }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| {{Code|preset=1|OnIndeterminate}} }}
  {{td|align=center| {{Code|preset=1|OnIndeterminate}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| . }}
  {{td| . }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center|radius=0 0 0 3px| {{Code|preset=1|OnTrue}} }}
  {{td|align=center|radius=0 0 0 3px| {{Code|preset=1|OnTrue}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| . }}
  {{td| . }}
  {{Table|td|radius=0 0 3px 0}}
  {{td|radius=0 0 3px 0}}
}}
}}
}}
}}
Line 255: Line 336:
=== logic_compare ===
=== logic_compare ===
{{Table
{{Table
| {{Table|tr|
| {{tr|
  {{Table|th|radius=3px 0 0 0| Parameters }}
  {{th|radius=3px 0 0 0| Parameters }}
  {{Table|th| Type }}
  {{th| Type }}
  {{Table|th| {{int:listfiles_description}} }}
  {{th| {{int:listfiles_description}} }}
  {{Table|th|radius=0 3px 0 0| Notes }}
  {{th|radius=0 3px 0 0| Notes }}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| <s>{{Code|preset=0|Initial value}}</s><br>{{Code|preset=1|First value}} }}
  {{td|align=center| <s>{{Code|preset=0|Initial value}}</s><br>{{Code|preset=1|First value}} }}
  {{Table|td|align=center| string }}
  {{td|align=center| string }}
  {{Table|td| Initial first value. }}
  {{td| Initial first value. }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| <s>{{Code|preset=0|Compare value}}</s><br>{{Code|preset=1|Second value}} }}
  {{td|align=center| <s>{{Code|preset=0|Compare value}}</s><br>{{Code|preset=1|Second value}} }}
  {{Table|td|align=center| string }}
  {{td|align=center| string }}
  {{Table|td| The value to compare against. }}
  {{td| The value to compare against. }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|th| Inputs }}
  {{th| Inputs }}
  {{Table|th| Type }}
  {{th| Type }}
  {{Table|th| {{int:listfiles_description}} }}
  {{th| {{int:listfiles_description}} }}
  {{Table|th| Notes }}
  {{th| Notes }}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| {{Code|preset=1|GetFirstValue}} }}
  {{td|align=center| {{Code|preset=1|GetFirstValue}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| . }}
  {{td| . }}
  {{Table|td| “Read-only” event. }}
  {{td| “Read-only” event. }}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| {{Code|preset=1|GetSecondValue}} }}
  {{td|align=center| {{Code|preset=1|GetSecondValue}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| . }}
  {{td| . }}
  {{Table|td| “Read-only” event. }}
  {{td| “Read-only” event. }}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| <s>{{Code|preset=0|SetValue}}</s><br>{{Code|preset=1|SetFirstValue}} }}
  {{td|align=center| <s>{{Code|preset=0|SetValue}}</s><br>{{Code|preset=1|SetFirstValue}} }}
  {{Table|td|align=center| string }}
  {{td|align=center| string }}
  {{Table|td| . }}
  {{td| . }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| <s>{{Code|preset=0|SetCompareValue}}</s><br>{{Code|preset=1|SetSecondValue}} }}
  {{td|align=center| <s>{{Code|preset=0|SetCompareValue}}</s><br>{{Code|preset=1|SetSecondValue}} }}
  {{Table|td|align=center| string }}
  {{td|align=center| string }}
  {{Table|td| . }}
  {{td| . }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| {{Code|preset=1|CompareInt}} }}
  {{td|align=center| {{Code|preset=1|CompareInt}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| . }}
  {{td| . }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| <s>{{Code|preset=0|Compare}}</s><br>{{Code|preset=1|CompareFloat}} }}
  {{td|align=center| <s>{{Code|preset=0|Compare}}</s><br>{{Code|preset=1|CompareFloat}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| . }}
  {{td| . }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| {{Code|preset=1|CompareString}} }}
  {{td|align=center| {{Code|preset=1|CompareString}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| . }}
  {{td| . }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|th| Outputs }}
  {{th| Outputs }}
  {{Table|th| Type }}
  {{th| Type }}
  {{Table|th| {{int:listfiles_description}} }}
  {{th| {{int:listfiles_description}} }}
  {{Table|th| Notes }}
  {{th| Notes }}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| {{Code|preset=1|OnGetFirstValue}} }}
  {{td|align=center| {{Code|preset=1|OnGetFirstValue}} }}
  {{Table|td|align=center| string }}
  {{td|align=center| string }}
  {{Table|td| . }}
  {{td| . }}
  {{Table|td| “Read-only” event. }}
  {{td| “Read-only” event. }}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| {{Code|preset=1|OnGetSecondValue}} }}
  {{td|align=center| {{Code|preset=1|OnGetSecondValue}} }}
  {{Table|td|align=center| string }}
  {{td|align=center| string }}
  {{Table|td| . }}
  {{td| . }}
  {{Table|td| “Read-only” event. }}
  {{td| “Read-only” event. }}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| {{Code|preset=1|OnEqual}} }}
  {{td|align=center| {{Code|preset=1|OnEqual}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| . }}
  {{td| . }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| {{Code|preset=1|OnNotEqual}} }}
  {{td|align=center| {{Code|preset=1|OnNotEqual}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| . }}
  {{td| . }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| {{Code|preset=1|OnLess}} }}
  {{td|align=center| {{Code|preset=1|OnLess}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| . }}
  {{td| . }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| {{Code|preset=1|OnGreater}} }}
  {{td|align=center| {{Code|preset=1|OnGreater}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| . }}
  {{td| . }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| {{Code|preset=1|OnLessOrEqual}} }}
  {{td|align=center| {{Code|preset=1|OnLessOrEqual}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| . }}
  {{td| . }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center|radius=0 0 0 3px| {{Code|preset=1|OnGreaterOrEqual}} }}
  {{td|align=center|radius=0 0 0 3px| {{Code|preset=1|OnGreaterOrEqual}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| . }}
  {{td| . }}
  {{Table|td|radius=0 0 3px 0}}
  {{td|radius=0 0 3px 0}}
}}
}}
}}
}}
Line 385: Line 466:
=== logic_relay ===
=== logic_relay ===
{{Table
{{Table
| {{Table|tr|
| {{tr|
  {{Table|th|radius=3px 0 0 0| Inputs }}
  {{th|radius=3px 0 0 0| Inputs }}
  {{Table|th| Type }}
  {{th| Type }}
  {{Table|th| {{int:listfiles_description}} }}
  {{th| {{int:listfiles_description}} }}
  {{Table|th|radius=0 3px 0 0| Notes }}
  {{th|radius=0 3px 0 0| Notes }}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| <s>{{Code|preset=0|Trigger}}</s><br>{{Code|preset=1|Trigger1}} }}
  {{td|align=center| <s>{{Code|preset=0|Trigger}}</s><br>{{Code|preset=1|Trigger1}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| Fires the {{Code|preset=1|OnTrigger1}} event. }}
  {{td| Fires the {{Code|preset=1|OnTrigger1}} event. }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| {{Code|preset=1|Trigger2}} }}
  {{td|align=center| {{Code|preset=1|Trigger2}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| Fires the {{Code|preset=1|OnTrigger2}} event. }}
  {{td| Fires the {{Code|preset=1|OnTrigger2}} event. }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| {{Code|preset=1|Trigger3}} }}
  {{td|align=center| {{Code|preset=1|Trigger3}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| Fires the {{Code|preset=1|OnTrigger3}} event. }}
  {{td| Fires the {{Code|preset=1|OnTrigger3}} event. }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| {{Code|preset=1|Trigger4}} }}
  {{td|align=center| {{Code|preset=1|Trigger4}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| Fires the {{Code|preset=1|OnTrigger4}} event. }}
  {{td| Fires the {{Code|preset=1|OnTrigger4}} event. }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|th| Outputs }}
  {{th| Outputs }}
  {{Table|th| Type }}
  {{th| Type }}
  {{Table|th| {{int:listfiles_description}} }}
  {{th| {{int:listfiles_description}} }}
  {{Table|th| Notes }}
  {{th| Notes }}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| <s>{{Code|preset=0|OnTrigger}}</s><br>{{Code|preset=1|OnTrigger1}} }}
  {{td|align=center| <s>{{Code|preset=0|OnTrigger}}</s><br>{{Code|preset=1|OnTrigger1}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| Fires in response to {{Code|preset=1|Trigger1}} input. }}
  {{td| Fires in response to {{Code|preset=1|Trigger1}} input. }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| {{Code|preset=1|OnTrigger2}} }}
  {{td|align=center| {{Code|preset=1|OnTrigger2}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| Fires in response to {{Code|preset=1|Trigger2}} input. }}
  {{td| Fires in response to {{Code|preset=1|Trigger2}} input. }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| {{Code|preset=1|OnTrigger3}} }}
  {{td|align=center| {{Code|preset=1|OnTrigger3}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| Fires in response to {{Code|preset=1|Trigger3}} input. }}
  {{td| Fires in response to {{Code|preset=1|Trigger3}} input. }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center|radius=0 0 0 3px| {{Code|preset=1|OnTrigger4}} }}
  {{td|align=center|radius=0 0 0 3px| {{Code|preset=1|OnTrigger4}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| Fires in response to {{Code|preset=1|Trigger3}} input. }}
  {{td| Fires in response to {{Code|preset=1|Trigger3}} input. }}
  {{Table|td|radius=0 0 3px 0}}
  {{td|radius=0 0 3px 0}}
}}
}}
}}
}}
Line 457: Line 538:




== Math Entities ==
=== math_calculator ===
=== math_calculator ===
<p style="opacity:.6; margin-top:-8px">New entity.</p>
<p style="opacity:.6; margin-top:-8px">New entity.</p>
{{Table
{{Table
| {{Table|tr|
| {{tr|
  {{Table|th|radius=3px 0 0 0| Inputs }}
  {{th|radius=3px 0 0 0| Inputs }}
  {{Table|th| Type }}
  {{th| Type }}
  {{Table|th| {{int:listfiles_description}} }}
  {{th| {{int:listfiles_description}} }}
  {{Table|th|radius=0 3px 0 0| Notes }}
  {{th|radius=0 3px 0 0| Notes }}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| {{Code|preset=1|GetValue}} }}
  {{td|align=center| {{Code|preset=1|GetValue}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| Get calculator value. Fires the {{Code|preset=1|OnGetValue}} event. }}
  {{td| Get calculator value. Fires the {{Code|preset=1|OnGetValue}} event. }}
  {{Table|td| “Read-only” event. }}
  {{td| “Read-only” event. }}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| {{Code|preset=1|GetParity}} }}
  {{td|align=center| {{Code|preset=1|GetParity}} }}
  {{Table|td|align=center| void }}
  {{td|align=center| void }}
  {{Table|td| Get the parity of a calculator value. Fires {{Code|preset=1|OnValueEven}} if the number is even and {{Code|preset=1|OnValueOdd}} if it is odd. If the value is a {{Code|preset=1|float}}, the non-integer part of the value will be ignored. }}
  {{td| Get the parity of a calculator value. Fires {{Code|preset=1|OnValueEven}} if the number is even and {{Code|preset=1|OnValueOdd}} if it is odd. If the value is a {{Code|preset=1|float}}, the non-integer part of the value will be ignored. }}
  {{Table|td| “Read-only” event. }}
  {{td| “Read-only” event. }}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| {{Code|preset=1|RoundValue}} }}
  {{td|align=center| {{Code|preset=1|RoundValue}} }}
  {{Table|td|align=center| integer or void }}
  {{td|align=center| integer or void }}
  {{Table|td| Rounds calculator value: {{Code|1=0.3 = 0}}, {{Code|1=0.8 = 1}}. You can also specify a number that will determine at what level to round the number. For example, if the calculator number is 256 and the input value is 2 (comparable to the number of zeros), then the number will be rounded up to 300. This also works with negative numbers: if your number is 0.18, and the input value is -1, then the result will be 0.2. }}
  {{td| Rounds calculator value: {{Code|1=0.3 = 0}}, {{Code|1=0.8 = 1}}. You can also specify a number that will determine at what level to round the number. For example, if the calculator number is 256 and the input value is 2 (comparable to the number of zeros), then the number will be rounded up to 300. This also works with negative numbers: if your number is 0.18, and the input value is -1, then the result will be 0.2. }}
  {{Table|td}}
  {{td}}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| {{Code|preset=1|SetValue}} }}
  {{td|align=center| {{Code|preset=1|SetValue}} }}
  {{Table|td|align=center| string, float or void }}
  {{td|align=center| string, float or void }}
  {{Table|td| Sets the value of the calculator. }}
  {{td| Sets the value of the calculator. }}
  {{Table|td|rowspan=7|2=These Inputs support constants. For example, to set the value of the calculator to π (3.14159…), you can use {{Code|SetValue pi}}, or if you want to subtract e (2.71828…) from the calculator value, you can use {{Code|Subtract e}}.
  {{td|(See Note after this table.)}}
}}
{{tr|
  {{td|align=center| {{Code|preset=1|Add}} }}
  {{td|align=center| string, float or void }}
  {{td| Adds the entered value to the calculator. }}
  {{td|(See Note after this table.)}}
}}
{{tr|
  {{td|align=center| {{Code|preset=1|Subtract}} }}
  {{td|align=center| string, float or void }}
  {{td| Subtracts the entered value from the calculator value. }}
  {{td|(See Note after this table.)}}
}}
{{tr|
  {{td|align=center| {{Code|preset=1|Multiply}} }}
  {{td|align=center| string, float or void }}
  {{td| Multiplies the calculator value by the entered value. }}
  {{td|(See Note after this table.)}}
}}
{{tr|
  {{td|align=center| {{Code|preset=1|Divide}} }}
  {{td|align=center| string, float or void }}
  {{td| Divides the calculator value by the entered value. Completely ignores the value 0. }}
  {{td|(See Note after this table.)}}
}}
{{tr|
  {{td|align=center| {{Code|preset=1|Power}} }}
  {{td|align=center| string, float or void }}
  {{td| Raises the calculator value to the entered power. }}
  {{td|(See Note after this table.)}}
}}
{{tr|
  {{td|align=center| {{Code|preset=1|Modulo}} }}
  {{td|align=center| string, float or void }}
  {{td| Calculates the remainder of dividing the entered number by the current calculator value. Completely ignores the value 0. }}
  {{td|(See Note after this table.)}}
}}
{{tr|
  {{th| Outputs }}
  {{th| Type }}
  {{th| {{int:listfiles_description}} }}
  {{th| Notes }}
}}
{{tr|
  {{td|align=center| {{Code|preset=1|OnValueChanged}} }}
  {{td|align=center| float }}
  {{td| Fires when the calculator value has been changed. }}
  {{td}}
}}
{{tr|
  {{td|align=center| {{Code|preset=1|OnValueNotChanged}} }}
  {{td|align=center| float }}
  {{td| Fires when the calculator value has not been changed. This only happens if one of the Inputs that interacts with the calculator value has been used. Therefore, the {{Code|preset=1|GetValue}} and {{Code|preset=1|GetParity}} events do not fire this Output. }}
  {{td}}
}}
{{tr|
  {{td|align=center| {{Code|preset=1|OnGetValue}} }}
  {{td|align=center| float }}
  {{td| Fires in response to {{Code|preset=1|GetValue}} input. }}
  {{td| “Read-only” event. }}
}}
{{tr|
  {{td|align=center| {{Code|preset=1|OnValueEven}} }}
  {{td|align=center| float }}
  {{td| Fires in response to {{Code|preset=1|GetParity}} input if the value is even. }}
  {{td| “Read-only” event. }}
}}
{{tr|
  {{td|align=center|radius=0 0 0 3px| {{Code|preset=1|OnValueOdd}} }}
  {{td|align=center| float }}
  {{td| Fires in response to {{Code|preset=1|GetParity}} input if the value is odd. }}
  {{td|radius=0 0 3px 0| “Read-only” event. }}
}}
}}
 
{{Note|These Inputs support constants. For example, to set the value of the calculator to π (3.14159…), you can use {{Code|SetValue pi}}, or if you want to subtract e (2.71828…) from the calculator value, you can use {{Code|Subtract e}}.}}
<table align="center" class="standard-table"><caption>Available constants</caption>
<table align="center" class="standard-table"><caption>Available constants</caption>
<tr><th>Constant</th><th>{{int:listfiles_description}}</th><th>Value</th></tr>
<tr><th>Constant</th><th>{{int:listfiles_description}}</th><th>Value</th></tr>
Line 504: Line 662:
<tr><td>{{Code|sqrt2}}</td><td>√<span style="border-top:1px solid; padding:0 .2em">2</span></td><td>1.41421356237309504880</td></tr>
<tr><td>{{Code|sqrt2}}</td><td>√<span style="border-top:1px solid; padding:0 .2em">2</span></td><td>1.41421356237309504880</td></tr>
<tr><td>{{Code|1sqrt2}}</td><td>1/√<span style="border-top:1px solid; padding:0 .2em">2</span></td><td>0.707106781186547524401</td></tr>
<tr><td>{{Code|1sqrt2}}</td><td>1/√<span style="border-top:1px solid; padding:0 .2em">2</span></td><td>0.707106781186547524401</td></tr>
</table>}}
</table>
}}
{{Table|tr|
  {{Table|td|align=center| {{Code|preset=1|Add}} }}
  {{Table|td|align=center| string, float or void }}
  {{Table|td| Adds the entered value to the calculator. }}
}}
{{Table|tr|
  {{Table|td|align=center| {{Code|preset=1|Subtract}} }}
  {{Table|td|align=center| string, float or void }}
  {{Table|td| Subtracts the entered value from the calculator value. }}
}}
{{Table|tr|
  {{Table|td|align=center| {{Code|preset=1|Multiply}} }}
  {{Table|td|align=center| string, float or void }}
  {{Table|td| Multiplies the calculator value by the entered value. }}
}}
{{Table|tr|
  {{Table|td|align=center| {{Code|preset=1|Divide}} }}
  {{Table|td|align=center| string, float or void }}
  {{Table|td| Divides the calculator value by the entered value. Completely ignores the value 0. }}
}}
{{Table|tr|
  {{Table|td|align=center| {{Code|preset=1|Power}} }}
  {{Table|td|align=center| string, float or void }}
  {{Table|td| Raises the calculator value to the entered power. }}
}}
{{Table|tr|
  {{Table|td|align=center| {{Code|preset=1|Modulo}} }}
  {{Table|td|align=center| string, float or void }}
  {{Table|td| Calculates the remainder of dividing the entered number by the current calculator value. Completely ignores the value 0. }}
}}
{{Table|tr|
  {{Table|th| Outputs }}
  {{Table|th| Type }}
  {{Table|th| {{int:listfiles_description}} }}
  {{Table|th| Notes }}
}}
{{Table|tr|
  {{Table|td|align=center| {{Code|preset=1|OnValueChanged}} }}
  {{Table|td|align=center| float }}
  {{Table|td| Fires when the calculator value has been changed. }}
  {{Table|td}}
}}
{{Table|tr|
  {{Table|td|align=center| {{Code|preset=1|OnValueNotChanged}} }}
  {{Table|td|align=center| float }}
  {{Table|td| Fires when the calculator value has not been changed. This only happens if one of the Inputs that interacts with the calculator value has been used. Therefore, the {{Code|preset=1|GetValue}} and {{Code|preset=1|GetParity}} events do not fire this Output. }}
  {{Table|td}}
}}
{{Table|tr|
  {{Table|td|align=center| {{Code|preset=1|OnGetValue}} }}
  {{Table|td|align=center| float }}
  {{Table|td| Fires in response to {{Code|preset=1|GetValue}} input. }}
  {{Table|td| “Read-only” event. }}
}}
{{Table|tr|
  {{Table|td|align=center| {{Code|preset=1|OnValueEven}} }}
  {{Table|td|align=center| float }}
  {{Table|td| Fires in response to {{Code|preset=1|GetParity}} input if the value is even. }}
  {{Table|td| “Read-only” event. }}
}}
{{Table|tr|
  {{Table|td|align=center|radius=0 0 0 3px| {{Code|preset=1|OnValueOdd}} }}
  {{Table|td|align=center| float }}
  {{Table|td| Fires in response to {{Code|preset=1|GetParity}} input if the value is odd. }}
  {{Table|td|radius=0 0 3px 0| “Read-only” event. }}
}}
}}




Line 588: Line 678:
=== math_remap ===
=== math_remap ===
{{Todo|More documentation.}}
{{Todo|More documentation.}}
== Special Entities ==
Entities that exist on all maps and in a single copy.
=== Player ===
{{Todo|More documentation.}}
=== World ===
<p style="opacity:.6; margin-top:-8px">Old name: {{Code|preset=0|worldspawn}}.</p>
An entity that is the world itself in which everything that is on the map is stored.
{{Todo|More documentation.}}
{{Table
| {{tr|
  {{th|radius=3px 0 0 0| Parameters }}
  {{th| Type }}
  {{th| {{int:listfiles_description}} }}
  {{th|radius=0 3px 0 0| Notes }}
}}
{{tr|
  {{td|align=center| ? }}
  {{td|align=center| ? }}
  {{td| ? }}
  {{td}}
}}
{{tr|
  {{th| Inputs }}
  {{th| Type }}
  {{th| {{int:listfiles_description}} }}
  {{th| Notes }}
}}
{{tr|
  {{td|align=center| {{Code|preset=1|Close Map}} }}
  {{td|align=center| Void }}
  {{td| Closes the map and returns the player to the main menu. }}
  {{td}}
}}
{{tr|
  {{th| Outputs }}
  {{th| Type }}
  {{th| {{int:listfiles_description}} }}
  {{th| Notes }}
}}
{{tr|
  {{td|align=center| ? }}
  {{td|align=center| ? }}
  {{td| ? }}
  {{td|radius=0 0 3px 0}}
}}
}}


== Deleted entities ==
== Deleted entities ==
* [[logic_active_autosave]]
We will remember.. your uselessness
* [[trigger_once]]
* [[multisource]]
* [[logic_multicompare]]
* [[env_beverage]]
* [[env_beverage]]
* [[item_sodacan]]
* [[filter_base]]
* [[filter_base]]
* [[filter_multi]]
* [[filter_multi]]
* [[game_end]]
* [[game_player_equip]]
* [[game_player_team]]
* [[item_sodacan]]
* [[logic_active_autosave]]
* [[logic_lineto]]
* [[logic_multicompare]]
* [[math_colorblend]]
* [[multisource]]
* [[point_clientcommand]]
* [[point_clientcommand]]
* [[point_servercommand]]
* [[point_servercommand]]
* [[logic_lineto]]
* [[trigger_once]]
* [[Info_player_start (Source)|info_player_start]]


== Other ==
== Other ==
* Minor optimization to reduce entdata usage.
* Changed structure of {{Code|.bsp}} files to reduce entdata usage.
* Added more support for converting from one value format to another.
* Added more support for converting from one value format to another.
* New Hammer (in development).
* New Hammer (in development).
<!-- * Fixed {{Code|showinfo}} command. -->
* 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}}.
* Commands such as {{Code|ent_fire}}, {{Code|ent_pause}}, {{Code|ent_step}}, etc. will be replaced with a graphical representation called “I/O Event Management Window”. It will also contain additional functionality for interacting with I/O events on the map, for example the ability to display all I/O stored in a specific entity.
* {{Code|captioncompiler}} will be replaced by CaptionEditor with graphical representation and new functionality.
<!-- * Fixed {{Code|showinfo}} command. (not really) -->
 
== See also ==
* {{mapbase|1}}
* {{strata|1}}
* {{t|branch-navbox}}
 
== External links ==
{{empty}}

Latest revision as of 05:00, 20 June 2024

SourceRenewed SourceRenewed 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 Max34.

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 (World). 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.

Note.pngNote:These Inputs support constants. For example, to set the value of the calculator to π (3.14159…), you can use SetValue pi, or if you want to subtract e (2.71828…) from the calculator value, you can use Subtract e.
Available constants
ConstantDescriptionValue
ee2.71828182845904523536
log2elog2(e)1.44269504088896340736
log10elog10(e)0.434294481903251827651
ln2ln(2)0.693147180559945309417
ln10ln(10)2.30258509299404568402
piπ3.14159265358979323846
pi2π/21.57079632679489661923
pi4π/40.785398163397448309616
1pi1/π0.318309886183790671538
2pi2/π0.636619772367581343076
2sqrtpi2/√π1.12837916709551257390
sqrt221.41421356237309504880
1sqrt21/√20.707106781186547524401


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.

Special Entities

Entities that exist on all maps and in a single copy.

Player

Todo: More documentation.


World

Old name: worldspawn.

An entity that is the world itself in which everything that is on the map is stored.

Todo: More documentation.

Deleted entities

We will remember.. your uselessness

Other

  • Changed structure of .bsp files 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.
  • Commands such as ent_fire, ent_pause, ent_step, etc. will be replaced with a graphical representation called “I/O Event Management Window”. It will also contain additional functionality for interacting with I/O events on the map, for example the ability to display all I/O stored in a specific entity.
  • captioncompiler will be replaced by CaptionEditor with graphical representation and new functionality.

See also

External links

Empty

This article or section is empty. You can help by adding it.