Functions in tsfun.inc
List of functions
| Function | Description |
|---|---|
| Melee_Attack | Function is called just before a kung foo attack is done, damage and time length may be altered with natives. Return PLUGIN_HANDLED to stop attack. UNAVAILABLE IN 1.70 |
| client_stunt | |
| client_powerup | Function is called when powerups are ran, Returns value of powerup. Use TSPWUP_*'s to find exactly which one it is. UNAVAILABLE IN 1.70 |
| ts_wpnlogtoname | weapon logname to weapon name convertion |
| ts_wpnlogtoid | weapon logname to weapon index convertion |
| ts_getusercash | |
| ts_setusercash | |
| ts_getuserslots | |
| ts_setuserslots | |
| ts_getuserstate | |
| ts_getuserwpn | |
| ts_getuserspace | |
| ts_getuserkillflags | |
| ts_getkillingstreak | |
| ts_getuserlastfrag | |
| ts_giveweapon | |
| ts_getuserpwup | |
| ts_createpwup | Function will create pwup entity and return its index (pwupent) |
| ts_givepwup | |
| ts_setpddata | |
| ts_set_message | |
| ts_get_message | |
| ts_is_normal | |
| ts_is_in_slowmo | |
| ts_set_bullettrail | |
| ts_set_fakeslowmo | |
| ts_set_fakeslowpause | |
| ts_set_speed | Sets speed artificially. 1.0 is default, Go into fractions and decimals for slower and put in higher numbers for higher speeds. Aura is how far things around you are effected Time is the time until it wears off. 0.0 for speed will freeze people. Do not use negatives. |
| ts_set_physics_speed | Sets physics speed artificially. Things like sparks and sounds will be effected. Any negative number will render all physics paused. |
| ts_is_running_powerup | |
| ts_force_run_powerup |