*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@903 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2007-04-03 18:56:40 +00:00
parent a735498b8e
commit fae7543e2a
14 changed files with 563 additions and 560 deletions
+15 -2
View File
@@ -4,6 +4,14 @@
vector<entity> ents;
char *entnames[] =
{
"none?", "light", "playerstart",
"clips", "ammobox","grenades",
"health", "armour", "akimbo",
"mapmodel", "trigger",
"ladder", "ctf-flag", "?", "?", "?",
};
char *entmdlnames[] =
{
//FIXME : fix the "pickups" infront
@@ -17,8 +25,6 @@ void renderent(entity &e, char *mdlname, float z, float yaw, int anim = ANIM_MAP
rendermodel(mdlname, anim, 0, 1.1f, e.x, z+S(e.x, e.y)->floor, e.y, yaw, 0, speed, basetime);
}
extern void newparticle(vec &o, vec &d, int fade, int type, int tex = -1);
int triggeranim(entity &e)
{
int anim = ANIM_TRIGGER;
@@ -28,6 +34,13 @@ int triggeranim(entity &e)
void renderentities()
{
if(editmode) loopv(ents)
{
entity &e = ents[i];
if(e.type==NOTUSED) continue;
vec v(e.x, e.y, e.z);
particle_splash(2, 2, 40, v);
}
if(lastmillis>triggertime+1000) triggertime = 0;
loopv(ents)
{