User:Max34/SourceRenewed: Difference between revisions
No edit summary |
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) |
||
(16 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"> | {{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>}} | ||
{{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}}. | |||
== Changes in the common class of all entities == | == Changes in the common class of all entities == | ||
Line 11: | Line 11: | ||
}} | }} | ||
{{tr| | {{tr| | ||
{{td|align=center| {{Code|preset=1|Entity State}} }} | {{td|align=center| {{Code|preset=1|Entity I/O State}} }} | ||
{{td|align=center| choice }} | {{td|align=center| choice }} | ||
{{td| {{Code|preset=1| | {{td| {{Code|preset=1|Enabled}} (by default) or {{Code|preset=1|Disabled}}. Whether the entity IO is enabled or disabled when spawning. }} | ||
{{td}} | {{td}} | ||
}} | }} | ||
Line 23: | Line 23: | ||
}} | }} | ||
{{tr| | {{tr| | ||
{{td|align=center| {{Code|preset=1| | {{td|align=center| {{Code|preset=1|Enable I/O Interaction}} }} | ||
{{td|align=center| void }} | {{td|align=center| void }} | ||
{{td| Enables an entity. }} | {{td| Enables an entity IO system. }} | ||
{{td|rowspan=3| This entity state system is something new and has nothing to do with the deprecated | {{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. }} | ||
}} | }} | ||
{{tr| | {{tr| | ||
{{td|align=center| {{Code|preset=1| | {{td|align=center| {{Code|preset=1|Toggle I/O Interaction}} }} | ||
{{td|align=center| void }} | {{td|align=center| void }} | ||
{{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. }} | ||
}} | }} | ||
{{tr| | {{tr| | ||
{{td|align=center| {{Code|preset=1| | {{td|align=center| {{Code|preset=1|Disable I/O Interaction}} }} | ||
{{td|align=center| void }} | {{td|align=center| void }} | ||
{{td| Disables an entity | {{td| Disables an entity I/O system. }} | ||
}} | }} | ||
{{tr| | {{tr| | ||
{{td|align=center| <s>{{Code|preset=0|SetTeam}}</s><br>{{Code|preset=1| | {{td|align=center| <s>{{Code|preset=0|SetTeam}}</s><br>{{Code|preset=1|Set Group}} }} | ||
{{td|align=center| integer }} | {{td|align=center| integer }} | ||
{{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. }} | ||
Line 45: | Line 45: | ||
}} | }} | ||
{{tr| | {{tr| | ||
{{td|align=center| <s>{{Code|preset=0|FireUser1}}</s><br>{{Code|preset=1| | {{td|align=center| <s>{{Code|preset=0|FireUser1}}</s><br>{{Code|preset=1|Fire Custom Event 1}} }} | ||
{{td|align=center| void }} | {{td|align=center| void }} | ||
{{td| Fires the {{Code|preset=1| | {{td| Fires the {{Code|preset=1|On Custom Event 1}} event if the entity is enabled. }} | ||
{{td}} | {{td}} | ||
}} | }} | ||
{{tr| | {{tr| | ||
{{td|align=center| <s>{{Code|preset=0|FireUser2}}</s><br>{{Code|preset=1| | {{td|align=center| <s>{{Code|preset=0|FireUser2}}</s><br>{{Code|preset=1|Fire Custom Event 2}} }} | ||
{{td|align=center| void }} | {{td|align=center| void }} | ||
{{td| Fires the {{Code|preset=1| | {{td| Fires the {{Code|preset=1|On Custom Event 2}} event if the entity is enabled. }} | ||
{{td}} | {{td}} | ||
}} | }} | ||
{{tr| | {{tr| | ||
{{td|align=center| <s>{{Code|preset=0|FireUser3}}</s><br>{{Code|preset=1| | {{td|align=center| <s>{{Code|preset=0|FireUser3}}</s><br>{{Code|preset=1|Fire Custom Event 3}} }} | ||
{{td|align=center| void }} | {{td|align=center| void }} | ||
{{td| Fires the {{Code|preset=1| | {{td| Fires the {{Code|preset=1|On Custom Event 3}} event if the entity is enabled. }} | ||
{{td}} | {{td}} | ||
}} | }} | ||
{{tr| | {{tr| | ||
{{td|align=center| <s>{{Code|preset=0|FireUser4}}</s><br>{{Code|preset=1| | {{td|align=center| <s>{{Code|preset=0|FireUser4}}</s><br>{{Code|preset=1|Fire Custom Event 4}} }} | ||
{{td|align=center| void }} | {{td|align=center| void }} | ||
{{td| Fires the {{Code|preset=1| | {{td| Fires the {{Code|preset=1|On Custom Event 4}} event if the entity is enabled. }} | ||
{{td}} | {{td}} | ||
}} | }} | ||
Line 75: | Line 75: | ||
}} | }} | ||
{{tr| | {{tr| | ||
{{td|align=center| {{Code|preset=1| | {{td|align=center| {{Code|preset=1|On Spawn}} }} | ||
{{td|align=center| void }} | {{td|align=center| void }} | ||
{{td| Fired when the entity spawns. }} | {{td| Fired when the entity spawns. }} | ||
Line 81: | Line 81: | ||
}} | }} | ||
{{tr| | {{tr| | ||
{{td|align=center| {{Code|preset=1| | {{td|align=center| {{Code|preset=1|On Killed}} }} | ||
{{td|align=center| void }} | {{td|align=center| void }} | ||
{{td| Fired when the entity has been deleted. }} | {{td| Fired when the entity has been deleted. }} | ||
Line 87: | Line 87: | ||
}} | }} | ||
{{tr| | {{tr| | ||
{{td|align=center| <s>{{Code|preset=0|OnUser1}}</s><br>{{Code|preset=1| | {{td|align=center| <s>{{Code|preset=0|OnUser1}}</s><br>{{Code|preset=1|On Custom Event 1}} }} | ||
{{td|align=center| void }} | {{td|align=center| void }} | ||
{{td| Fires in response to {{Code|preset=1| | {{td| Fires in response to {{Code|preset=1|Fire Custom Event 1}} input. }} | ||
{{td}} | {{td}} | ||
}} | }} | ||
{{tr| | {{tr| | ||
{{td|align=center| <s>{{Code|preset=0|OnUser2}}</s><br>{{Code|preset=1| | {{td|align=center| <s>{{Code|preset=0|OnUser2}}</s><br>{{Code|preset=1|On Custom Event 2}} }} | ||
{{td|align=center| void }} | {{td|align=center| void }} | ||
{{td| Fires in response to {{Code|preset=1| | {{td| Fires in response to {{Code|preset=1|Fire Custom Event 2}} input. }} | ||
{{td}} | {{td}} | ||
}} | }} | ||
{{tr| | {{tr| | ||
{{td|align=center| <s>{{Code|preset=0|OnUser3}}</s><br>{{Code|preset=1| | {{td|align=center| <s>{{Code|preset=0|OnUser3}}</s><br>{{Code|preset=1|On Custom Event 3}} }} | ||
{{td|align=center| void }} | {{td|align=center| void }} | ||
{{td| Fires in response to {{Code|preset=1| | {{td| Fires in response to {{Code|preset=1|Fire Custom Event 3}} input. }} | ||
{{td}} | {{td}} | ||
}} | }} | ||
{{tr| | {{tr| | ||
{{td|align=center|radius=0 0 0 3px| <s>{{Code|preset=0|OnUser4}}</s><br>{{Code|preset=1| | {{td|align=center|radius=0 0 0 3px| <s>{{Code|preset=0|OnUser4}}</s><br>{{Code|preset=1|On Custom Event 4}} }} | ||
{{td|align=center| void }} | {{td|align=center| void }} | ||
{{td| Fires in response to {{Code|preset=1| | {{td| Fires in response to {{Code|preset=1|Fire Custom Event 4}} input. }} | ||
{{td|radius=0 0 3px 0}} | {{td|radius=0 0 3px 0}} | ||
}} | }} | ||
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}} | {{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 === | ||
{{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.}} | |||
{{ | |||
Line 568: | Line 570: | ||
{{td|align=center| string, float or void }} | {{td|align=center| string, float or void }} | ||
{{td| Sets the value of the calculator. }} | {{td| Sets the value of the calculator. }} | ||
{{td| | {{td|(See Note after this table.)}} | ||
}} | }} | ||
{{tr| | {{tr| | ||
Line 590: | Line 576: | ||
{{td|align=center| string, float or void }} | {{td|align=center| string, float or void }} | ||
{{td| Adds the entered value to the calculator. }} | {{td| Adds the entered value to the calculator. }} | ||
{{td|(See Note after this table.)}} | |||
}} | }} | ||
{{tr| | {{tr| | ||
Line 595: | Line 582: | ||
{{td|align=center| string, float or void }} | {{td|align=center| string, float or void }} | ||
{{td| Subtracts the entered value from the calculator value. }} | {{td| Subtracts the entered value from the calculator value. }} | ||
{{td|(See Note after this table.)}} | |||
}} | }} | ||
{{tr| | {{tr| | ||
Line 600: | Line 588: | ||
{{td|align=center| string, float or void }} | {{td|align=center| string, float or void }} | ||
{{td| Multiplies the calculator value by the entered value. }} | {{td| Multiplies the calculator value by the entered value. }} | ||
{{td|(See Note after this table.)}} | |||
}} | }} | ||
{{tr| | {{tr| | ||
Line 605: | Line 594: | ||
{{td|align=center| string, float or void }} | {{td|align=center| string, float or void }} | ||
{{td| Divides the calculator value by the entered value. Completely ignores the value 0. }} | {{td| Divides the calculator value by the entered value. Completely ignores the value 0. }} | ||
{{td|(See Note after this table.)}} | |||
}} | }} | ||
{{tr| | {{tr| | ||
Line 610: | Line 600: | ||
{{td|align=center| string, float or void }} | {{td|align=center| string, float or void }} | ||
{{td| Raises the calculator value to the entered power. }} | {{td| Raises the calculator value to the entered power. }} | ||
{{td|(See Note after this table.)}} | |||
}} | }} | ||
{{tr| | {{tr| | ||
Line 615: | Line 606: | ||
{{td|align=center| string, float or void }} | {{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| 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| | {{tr| | ||
Line 653: | Line 645: | ||
}} | }} | ||
}} | }} | ||
{{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> | |||
<tr><th>Constant</th><th>{{int:listfiles_description}}</th><th>Value</th></tr> | |||
<tr><td>{{Code|e}}</td><td>e</td><td>2.71828182845904523536</td></tr> | |||
<tr><td>{{Code|log2e}}</td><td>log2(e)</td><td>1.44269504088896340736</td></tr> | |||
<tr><td>{{Code|log10e}}</td><td>log10(e)</td><td>0.434294481903251827651</td></tr> | |||
<tr><td>{{Code|ln2}}</td><td>ln(2)</td><td>0.693147180559945309417</td></tr> | |||
<tr><td>{{Code|ln10}}</td><td>ln(10)</td><td>2.30258509299404568402</td></tr> | |||
<tr><td>{{Code|pi}}</td><td>π</td><td>3.14159265358979323846</td></tr> | |||
<tr><td>{{Code|pi2}}</td><td>π/2</td><td>1.57079632679489661923</td></tr> | |||
<tr><td>{{Code|pi4}}</td><td>π/4</td><td>0.785398163397448309616</td></tr> | |||
<tr><td>{{Code|1pi}}</td><td>1/π</td><td>0.318309886183790671538</td></tr> | |||
<tr><td>{{Code|2pi}}</td><td>2/π</td><td>0.636619772367581343076</td></tr> | |||
<tr><td>{{Code|2sqrtpi}}</td><td>2/√<span style="border-top:1px solid; padding:0 .2em">π</span></td><td>1.12837916709551257390</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> | |||
</table> | |||
Line 668: | 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 == | ||
We will remember.. your uselessness | |||
* [[env_beverage]] | |||
* [[filter_base]] | |||
* [[filter_multi]] | |||
* [[game_end]] | |||
* [[game_player_equip]] | |||
* [[game_player_team]] | |||
* [[item_sodacan]] | |||
* [[logic_active_autosave]] | * [[logic_active_autosave]] | ||
* [[ | * [[logic_lineto]] | ||
* [[logic_multicompare]] | * [[logic_multicompare]] | ||
* [[math_colorblend]] | * [[math_colorblend]] | ||
* [[ | * [[multisource]] | ||
* [[point_clientcommand]] | * [[point_clientcommand]] | ||
* [[point_servercommand]] | * [[point_servercommand]] | ||
* [[ | * [[trigger_once]] | ||
* [[ | * [[Info_player_start (Source)|info_player_start]] | ||
== Other == | == Other == | ||
* | * 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 is a project based on the
Source 2013 Singleplayer. Adds some new and useful things to the engine and improves the existing ones. However, unlike
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
Parameters | Type | Description | Notes |
---|---|---|---|
Entity I/O State | choice | Enabled (by default) or Disabled. Whether the entity IO is enabled or disabled when spawning. | |
Inputs | Type | Description | Notes |
Enable I/O Interaction | void | Enables an entity IO system. | 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. |
Toggle I/O Interaction | void | Toggles the state of an entity I/O system between enabled and disabled. | |
Disable I/O Interaction | void | Disables an entity I/O system. | |
Set Group |
integer | Sets the group for the entity. By default, all entities are in group 0. | |
Fire Custom Event 1 |
void | Fires the On Custom Event 1 event if the entity is enabled. | |
Fire Custom Event 2 |
void | Fires the On Custom Event 2 event if the entity is enabled. | |
Fire Custom Event 3 |
void | Fires the On Custom Event 3 event if the entity is enabled. | |
Fire Custom Event 4 |
void | Fires the On Custom Event 4 event if the entity is enabled. | |
Outputs | Type | Description | Notes |
On Spawn | void | Fired when the entity spawns. | [Todo] ☐ Make sure this event happens at the right time. |
On Killed | void | Fired when the entity has been deleted. | |
On Custom Event 1 |
void | Fires in response to Fire Custom Event 1 input. | |
On Custom Event 2 |
void | Fires in response to Fire Custom Event 2 input. | |
On Custom Event 3 |
void | Fires in response to Fire Custom Event 3 input. | |
On Custom Event 4 |
void | Fires in response to Fire Custom Event 4 input. |
Env Entities
env_sound
Old name: ambient_generic

env_spark
Filter Entities

filter_class
Old name: filter_activator_class
filter_group
Old name: filter_activator_team
filter_name
Old name: filter_activator_name
Parameters | Type | Description | Notes |
---|---|---|---|
Filter | string | . | |
Filtering Type | choice | . | |
Inputs | Type | Description | Notes |
GetFilter | void | . | “Read-only” event. |
SetFilter | string | . | |
FilterActivator | void | . | |
FilterCaller | void | . | |
Outputs | Type | Description | Notes |
OnGetFilter | string | . | “Read-only” event. |
OnFail | void | . | |
OnPass | void | . |
Logic Entities

logic_auto

logic_autosave
logic_branch
Parameters | Type | Description | Notes |
---|---|---|---|
Initial value | float | Initial branch value. All negative numbers are false; all positive true; 0 depending on setting Treat 0 as. | |
Treat 0 as | choice | false (by default), indeterminate (for ternary mode) or true. | |
Inputs | Type | Description | Notes |
GetValue | void | . | “Read-only” event. |
Test | void | . | |
SetValue | void | . | |
SetValueTest | void | . | |
ToggleValue |
void | . | |
ToggleValueTest |
void | . | |
Outputs | Type | Description | Notes |
OnGetValue | float | . | “Read-only” event. |
OnFalse | void | . | |
OnIndeterminate | void | . | |
OnTrue | void | . |
logic_branch_manager
Old name: logic_branch_listener.

logic_case
logic_compare
Parameters | Type | Description | Notes |
---|---|---|---|
First value |
string | Initial first value. | |
Second value |
string | The value to compare against. | |
Inputs | Type | Description | Notes |
GetFirstValue | void | . | “Read-only” event. |
GetSecondValue | void | . | “Read-only” event. |
SetFirstValue |
string | . | |
SetSecondValue |
string | . | |
CompareInt | void | . | |
CompareFloat |
void | . | |
CompareString | void | . | |
Outputs | Type | Description | Notes |
OnGetFirstValue | string | . | “Read-only” event. |
OnGetSecondValue | string | . | “Read-only” event. |
OnEqual | void | . | |
OnNotEqual | void | . | |
OnLess | void | . | |
OnGreater | void | . | |
OnLessOrEqual | void | . | |
OnGreaterOrEqual | void | . |
logic_console
New entity.
logic_relay
Inputs | Type | Description | Notes |
---|---|---|---|
Trigger1 |
void | Fires the OnTrigger1 event. | |
Trigger2 | void | Fires the OnTrigger2 event. | |
Trigger3 | void | Fires the OnTrigger3 event. | |
Trigger4 | void | Fires the OnTrigger4 event. | |
Outputs | Type | Description | Notes |
OnTrigger1 |
void | Fires in response to Trigger1 input. | |
OnTrigger2 | void | Fires in response to Trigger2 input. | |
OnTrigger3 | void | Fires in response to Trigger3 input. | |
OnTrigger4 | void | Fires in response to Trigger3 input. |
logic_string
New entity.
logic_timer
Math Entities
math_calculator
New entity.
Inputs | Type | Description | Notes |
---|---|---|---|
GetValue | void | Get calculator value. Fires the OnGetValue event. | “Read-only” event. |
GetParity | void | Get the parity of a calculator value. Fires OnValueEven if the number is even and OnValueOdd if it is odd. If the value is a float, the non-integer part of the value will be ignored. | “Read-only” event. |
RoundValue | integer or void | Rounds calculator value: 0.3 = 0, 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. | |
SetValue | string, float or void | Sets the value of the calculator. | (See Note after this table.) |
Add | string, float or void | Adds the entered value to the calculator. | (See Note after this table.) |
Subtract | string, float or void | Subtracts the entered value from the calculator value. | (See Note after this table.) |
Multiply | string, float or void | Multiplies the calculator value by the entered value. | (See Note after this table.) |
Divide | string, float or void | Divides the calculator value by the entered value. Completely ignores the value 0. | (See Note after this table.) |
Power | string, float or void | Raises the calculator value to the entered power. | (See Note after this table.) |
Modulo | string, float or void | Calculates the remainder of dividing the entered number by the current calculator value. Completely ignores the value 0. | (See Note after this table.) |
Outputs | Type | Description | Notes |
OnValueChanged | float | Fires when the calculator value has been changed. | |
OnValueNotChanged | float | 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 GetValue and GetParity events do not fire this Output. | |
OnGetValue | float | Fires in response to GetValue input. | “Read-only” event. |
OnValueEven | float | Fires in response to GetParity input if the value is even. | “Read-only” event. |
OnValueOdd | float | Fires in response to GetParity input if the value is odd. | “Read-only” event. |

Constant | Description | Value |
---|---|---|
e | e | 2.71828182845904523536 |
log2e | log2(e) | 1.44269504088896340736 |
log10e | log10(e) | 0.434294481903251827651 |
ln2 | ln(2) | 0.693147180559945309417 |
ln10 | ln(10) | 2.30258509299404568402 |
pi | π | 3.14159265358979323846 |
pi2 | π/2 | 1.57079632679489661923 |
pi4 | π/4 | 0.785398163397448309616 |
1pi | 1/π | 0.318309886183790671538 |
2pi | 2/π | 0.636619772367581343076 |
2sqrtpi | 2/√π | 1.12837916709551257390 |
sqrt2 | √2 | 1.41421356237309504880 |
1sqrt2 | 1/√2 | 0.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.
math_counter

math_remap
Special Entities
Entities that exist on all maps and in a single copy.
Player
World
Old name: worldspawn.
An entity that is the world itself in which everything that is on the map is stored.
Parameters | Type | Description | Notes |
---|---|---|---|
? | ? | ? | |
Inputs | Type | Description | Notes |
Close Map | Void | Closes the map and returns the player to the main menu. | |
Outputs | Type | Description | Notes |
? | ? | ? |
Deleted entities
We will remember.. your uselessness
- env_beverage
- filter_base
- 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_servercommand
- trigger_once
- info_player_start
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.
- Replaced all
- 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.