Mapping/Game Version Behaviour

From Sven Co-op
Jump to navigation Jump to search

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.