Functions
dodfun.inc
| Function | Type | Description |
|---|---|---|
| controlpoints_init | forward | called after first InitObj |
| grenade_throw | forward | Function is called after grenade throw |
| rocket_shoot | forward | Function is called after a rocket is shot |
| area_get_data | native | use this function to get info about specified control point's area |
| area_set_data | native | use this function to change control point's area data |
| dod_get_next_class | native | Returns next player class. Usefull is player is using random class |
| dod_get_pl_deaths | native | Returns player deaths |
| dod_get_pl_teamname | native | Gets player team name |
| dod_get_user_ammo | native | Gets the ammo of the specified weapon entity id |
| dod_get_user_kills | native | Returns player deaths. |
| dod_is_deployed | native | Returns 1 is player weapon is deployed (bar,mg..) |
| dod_is_randomclass | native | Returns 1 if player choose random class |
| dod_set_fuse | native | types : new or preprimed |
| dod_set_pl_deaths | native | Sets player deaths. Note if you opt to refresh the scoreboard, it will make the player appear as "DEAD" in the scoreboard. |
| dod_set_pl_teamname | native | Sets new team name for this player |
| dod_set_stamina | native | value is from 0 - 100 |
| dod_set_user_ammo | native | Sets the ammo of the specified weapon entity id |
| dod_set_user_class | native | Sets player class |
| dod_set_user_kills | native | Sets player kills. |
| dod_set_user_score | native | Sets player score. |
| dod_set_user_team | native | Sets player team and random class. Don't work for spectators. |
| objective_get_data | native | use this function to get info about specified control point |
| objective_set_data | native | use this function to change control point's data |
| objectives_get_num | native | returns number of objectives |
| objectives_reinit | native | use this function to update client(s) hud. You need to do this sometimes. Check CP_VALUE comments. if player is 0 , all clients will get this message |