Mod variables

 

I noted these down not just for you but foir me. My head hurts a lot some times. These variables can be used for whatever you want if you want. I will just shed some light on them.

 

Self.weapon

This is the players when. Updates if they camp if or if the weapons limiter is on. Each time they spawn. To update it you can use self waitexec global/anti_camper::get_weapon.

 

game.game  

Holds what game the mod is. Either AA, SH or BT is returned.

global/anti_camper.scr::getgame produces this.

 

game.campersettings

Holds all the commands in a array

 

game.types

Holds all the types in a array

 

game.scripts

Holds all the scripts in an array

 

game.all_commands

Holds all the commands in an array

 

Game.skins

Holds all the skins for the game if weapons limiter is on. (SH and BT)

 

game.limiter_weapons

Game weapons settings for weapons limiter.

 

Self.flying

If the player is flying a plane then this equals 1.

 

game.file

This can be used to find the correct path to a loaded settings file. This is so mods can access extra threads and valuable information.

 

It is an array of the loaded settings files ( not mods).  This is because some settings might be map specific. To find the correct path you would use the name of the settings file as the index.

 

For example if I wanted to find the path to the camper.txt settings file. I know it is named camper.txt. I would do this

 

Local.path = game.file[“camper”] [;p

 

The correct path to camper.txt would be returned.

 

game.scan_at_start

Make the mod scan for admins at the start of a map. 1 would mean on.

 

game.input_type

Windows or Linux . Set how to split the input "_" linux or " " for windows.

 

game.jump_height

The height players jump

 

game.run_spawn_protect_on_sh_and_bt

Run spawn protect on Sh and bt. 1 = yes, 0 or anything else = no

 

game.time_alive_type

Either 1 or 0, 1 is in the format of hh/nmm/ss. 0 tells you like "time alive: 19 seconds"