schedule shoot messages at earliest opportune time within a frame

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6178 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2011-03-31 19:41:10 +00:00
parent 498d96e200
commit 97ece63f0c
2 changed files with 23 additions and 23 deletions
+5 -5
View File
@@ -17,18 +17,18 @@ struct weapon
int &ammo, &mag, &gunwait, shots;
virtual int dynspread();
virtual float dynrecoil();
int reloading, lastaction, timebalance;
int reloading, lastaction;
virtual bool attack(vec &targ) = 0;
virtual void attackfx(const vec &from, const vec &to, int millis) = 0;
virtual void attackphysics(vec &from, vec &to);
virtual void attacksound();
virtual bool reload();
virtual void reset() { timebalance = 0; }
virtual void reset() {}
virtual bool busy() { return false; }
virtual int modelanim() = 0;
virtual void updatetimers();
virtual void updatetimers(int millis);
virtual bool selectable();
virtual bool deselectable();
virtual void renderstats();
@@ -41,7 +41,7 @@ struct weapon
virtual void onownerdies() {}
virtual void removebounceent(bounceent *b) {}
void sendshoot(vec &from, vec &to);
void sendshoot(vec &from, vec &to, int millis);
bool modelattacking();
void renderhudmodel(int lastaction, int index = 0);
@@ -174,7 +174,7 @@ struct akimbo : gun
void onammopicked();
void onselecting();
bool selectable();
void updatetimers();
void updatetimers(int millis);
void reset();
void renderhudmodel();
bool timerout();