[Half-Life AMXX] / include / dodx.inc Repository:
ViewVC logotype

Diff of /include/dodx.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1, Tue Oct 30 09:08:11 2007 UTC revision 17, Fri Nov 16 15:29:57 2007 UTC
# Line 28  Line 28 
28    XMF_DAMAGE = 0,    XMF_DAMAGE = 0,
29    XMF_DEATH,    XMF_DEATH,
30    XMF_SCORE,    XMF_SCORE,
31  }  };
32    
33  /* Use this function to register forwards */  /* Use this function to register forwards */
34  native register_statsfwd(ftype);  native register_statsfwd(ftype);
# Line 53  Line 53 
53  /* This Forward is called when a player spawns */  /* This Forward is called when a player spawns */
54  forward dod_client_spawn(id);  forward dod_client_spawn(id);
55    
56    /* This will be called whenever a player scopes or unscopes
57    value = 1 scope up
58    value = 0 scope down */
59    forward dod_client_scope(id, value);
60    
61    /* This will be called whenever a player drops a weapon
62    weapon is weapon dropped or picked up
63    value = 1 picked up
64    value = 0 dropped */
65    forward dod_client_weaponpickup(id, weapon, value);
66    
67    /* Called whenever the the player goes to or comes from prone position
68    value = 1 going down
69    value = 0 getting up */
70    forward dod_client_prone(id, value);
71    
72    /* This will be called whenever a player switches a weapon */
73    forward dod_client_weaponswitch(id, wpnew, wpnold);
74    
75    /* Forward for when a grenade explodes and its location */
76    forward dod_grenade_explosion(id, pos[3], wpnid);
77    
78    /* Forward for when a rocket explodes and its location */
79    forward dod_rocket_explosion(id, pos[3], wpnid);
80    
81    /* Forward for when a player picks up a object */
82    forward dod_client_objectpickup(id, objid, pos[3], value);
83    
84    /* Forward for when a users stamina decreases */
85    forward dod_client_stamina(id, stamina);
86    
87    /* We want to get just the weapon of whichever type that the player is on him
88    Use DODWT_* in dodconst.inc for type */
89    native dod_weapon_type(id, type);
90    
91    /* This native will change the position of a weapon within the users slots and its ammo ammount */
92    native dod_set_weaponlist(id, wpnID, slot, dropslot, totalrds);
93    
94  /* Sets the model for a player */  /* Sets the model for a player */
95  native dod_set_model(id, const model[]);  native dod_set_model(id, const model[]);
96    
# Line 102  Line 140 
140    
141  /* Returns id of currently carried weapon. Gets also  /* Returns id of currently carried weapon. Gets also
142  * ammount of ammo in clip and backpack. */  * ammount of ammo in clip and backpack. */
143  native dod_get_user_weapon(index,&clip,&ammo);  native dod_get_user_weapon(index,&clip=0,&ammo=0);
144    
145  /* Returns team score */  /* Returns team score */
146  native dod_get_team_score(teamId);  native dod_get_team_score(teamId);

Legend:
Removed from v.1  
changed lines
  Added in v.17

Contact
ViewVC Help
Powered by ViewVC 1.0.4