Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 1.38 KB

File metadata and controls

29 lines (22 loc) · 1.38 KB

Games Deathmatch API

This feature contains extended functionality on top of the Games API that makes it easier to build deathmatch games for Las Venturas Playground, by providing well considered options that apply to most sort of contests.

How to use the Games Deathmatch API?

Where you would normally register a game with the Games.registerGame() function, you will be using the GamesDeathmatch.registerGame() function instead. Pass in a class that extends DeathmatchGame, and you'll be able to use all of the extra functionality and options provided by this feature.

Your feature must depend on the games_deathmatch instead of the games feature.

Options when registering a game

The following options will be made available in addition to the default ones.

Option Description
lagCompensation Whether lag compensation should be enabled. Defaults to true.

Settings when starting a game

The following settings will be made available to all deathmatch games, and can be customized by players as they see fit. Specialized interfaces will be offered where appropriate.

Setting Description
Lag compensation Whether lag compensation should be enabled. Defaults to the option's value.