Difference between revisions of "Mapping/Game Version Behaviour"

From Sven Co-op
Jump to navigation Jump to search
m (→‎Behaviour changes: Capital R in "Release".)
m (→‎Behaviour changes: Why did the "Release" word even need to be there? That's the column heading.)
 
Line 22: Line 22:
 
0
 
0
 
||
 
||
All prior to [[Change_log/4.0b1|release 4.0b1]]
+
All prior to [[Change_log/4.0b1|4.0b1]]
 
||
 
||
 
* Picking up assault rifle grenades will give the player an M16 if they don't yet have one, as the grenade launcher has been moved to the M16 from the MP5.
 
* Picking up assault rifle grenades will give the player an M16 if they don't yet have one, as the grenade launcher has been moved to the M16 from the MP5.
Line 29: Line 29:
 
400
 
400
 
||
 
||
[[Change_log/4.0b1|Release 4.0b1]]
+
[[Change_log/4.0b1|4.0b1]]
 
||
 
||
 
* Reverted "Picking up assault rifle grenades will give the player an M16 if they don't yet have one" as the M16 now exists.
 
* Reverted "Picking up assault rifle grenades will give the player an M16 if they don't yet have one" as the M16 now exists.
Line 36: Line 36:
 
405
 
405
 
||
 
||
[[Change_log/4.05|Release 4.05]]
+
[[Change_log/4.05|4.05]]
 
||
 
||
 
* Non-WAV sounds will loop by default.
 
* Non-WAV sounds will loop by default.
Line 43: Line 43:
 
450
 
450
 
||
 
||
[[Change_log/4.5|Release 4.5]]
+
[[Change_log/4.5|4.5]]
 
||
 
||
 
* Reverted "Non-WAV sounds will loop by default." from '''450''' as looping sounds is now definable by the map.
 
* Reverted "Non-WAV sounds will loop by default." from '''450''' as looping sounds is now definable by the map.
Line 50: Line 50:
 
470
 
470
 
||
 
||
[[Change_log/4.7|Release 4.7]]
+
[[Change_log/4.7|4.7]]
 
||
 
||
 
* Strict version checking is now compared between the map and the game. If the map requires a later version than the game's current version a host error is thrown.
 
* Strict version checking is now compared between the map and the game. If the map requires a later version than the game's current version a host error is thrown.
Line 57: Line 57:
 
517
 
517
 
||
 
||
[[Change_log/5.17|Release 5.17]]
+
[[Change_log/5.17|5.17]]
 
||
 
||
 
* Doors sent the '''TOGGLE''' use type will change direction when "Obey Trigger Mode" is set to '''2''' "Yes, even when door is moving".<br />Previously the door would only travel in the opening direction when '''TOGGLE''' is sent to it.
 
* Doors sent the '''TOGGLE''' use type will change direction when "Obey Trigger Mode" is set to '''2''' "Yes, even when door is moving".<br />Previously the door would only travel in the opening direction when '''TOGGLE''' is sent to it.
Line 64: Line 64:
 
524
 
524
 
||
 
||
[[Change_log/5.24|Release 5.24]]
+
[[Change_log/5.24|5.24]]
 
||
 
||
 
* Entity "item_inventory" will no longer fire the "other" targets (on collect, on drop, etc.) for players on the same team as the player interacting with the item (self).<br />The "team" targets must be used instead as the "other" targets will only apply to players not on the same team as the player interacting with the item.
 
* Entity "item_inventory" will no longer fire the "other" targets (on collect, on drop, etc.) for players on the same team as the player interacting with the item (self).<br />The "team" targets must be used instead as the "other" targets will only apply to players not on the same team as the player interacting with the item.

Latest revision as of 19:59, 15 January 2021

Sven Co-op makes specific but necessary behaviour changes in its logic according to the version of the game a map was designed to run on. This functionality is used as sparingly as possible to make game play as consistent as possible across versions.

1 Choosing a version

Minimum game version of "worldspawn" entity.

When you create a map it will automatically assume that it's for the most current version of Sven Co-op. You therefore usually don't need to action this.

However if you need to specifically set your map for a specific version, or if you have an existing map you need to update to a more recent behaviour change, you can do this by editing the scversion2 key within the worldspawn entity. You can find this in Svencraft and similar editors via the Map menu then Map properties, then go down to the Minimum game version option.

The raw value will be an integer representing a version of Sven Co-op, for example 470 refers to release 4.7, and 524 refers to release release 5.24.

2 Behaviour changes

Version behaviour tracking begins as of release 4.0b1 with value 400. All releases prior to this (such as 2.0f and 3.0) will assume to have value 0.

Value Release Changes

0

All prior to 4.0b1

  • Picking up assault rifle grenades will give the player an M16 if they don't yet have one, as the grenade launcher has been moved to the M16 from the MP5.

400

4.0b1

  • Reverted "Picking up assault rifle grenades will give the player an M16 if they don't yet have one" as the M16 now exists.

405

4.05

  • Non-WAV sounds will loop by default.

450

4.5

  • Reverted "Non-WAV sounds will loop by default." from 450 as looping sounds is now definable by the map.

470

4.7

  • Strict version checking is now compared between the map and the game. If the map requires a later version than the game's current version a host error is thrown.

517

5.17

  • Doors sent the TOGGLE use type will change direction when "Obey Trigger Mode" is set to 2 "Yes, even when door is moving".
    Previously the door would only travel in the opening direction when TOGGLE is sent to it.

524

5.24

  • Entity "item_inventory" will no longer fire the "other" targets (on collect, on drop, etc.) for players on the same team as the player interacting with the item (self).
    The "team" targets must be used instead as the "other" targets will only apply to players not on the same team as the player interacting with the item.