mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-22 11:51:11 +00:00
Merge branch 'main' of https://github.com/nzp-team/quakec
This commit is contained in:
commit
fb7c97be1d
6 changed files with 29 additions and 28 deletions
|
@ -517,7 +517,7 @@ void(float dist) Window_Hop =
|
|||
self.enemy = find_new_enemy(self);
|
||||
//self.th_die();
|
||||
self.th_walk();
|
||||
LinkZombiesHitbox();
|
||||
//LinkZombiesHitbox();
|
||||
//bprint (PRINT_HIGH, "Linked hitboxes");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -244,21 +244,21 @@ void(entity who) makeCrawler =
|
|||
//who.th_grabledge = zombie_grabledge1;
|
||||
//who.th_diewunder = die_wunder1;
|
||||
|
||||
setmodel(who,"models/ai/zcbod.mdl");
|
||||
setmodel(who,"models/ai/zbc#.mdl");
|
||||
if(who.head.deadflag)
|
||||
{
|
||||
setmodel(who.head,"models/ai/zchead.mdl");
|
||||
//updateLimb (who, 0, world);
|
||||
setmodel(who.head,"models/ai/zhc^.mdl");
|
||||
updateLimb (who, 0, world);
|
||||
}
|
||||
if(who.larm.deadflag)
|
||||
{
|
||||
setmodel(who.larm,"models/ai/zclarm.mdl");
|
||||
//updateLimb (who, 1, world);
|
||||
setmodel(who.larm,"models/ai/zalc(.mdl");
|
||||
updateLimb (who, 1, world);
|
||||
}
|
||||
if(who.rarm.deadflag)
|
||||
{
|
||||
setmodel(who.rarm,"models/ai/zcrarm.mdl");
|
||||
//updateLimb (who, 2, world);
|
||||
setmodel(who.rarm,"models/ai/zarc(.mdl");
|
||||
updateLimb (who, 2, world);
|
||||
}
|
||||
who.crawling = 1;
|
||||
|
||||
|
|
|
@ -1380,7 +1380,7 @@ void() zombieRise =
|
|||
self.frame ++;
|
||||
self.think = zombieRise;
|
||||
self.nextthink = time + 0.1;
|
||||
LinkZombiesHitbox();
|
||||
//LinkZombiesHitbox();
|
||||
//bprint (PRINT_HIGH, "Linked hitboxes");
|
||||
};
|
||||
void() spawn_zombie =
|
||||
|
@ -1635,9 +1635,9 @@ void(entity where) spawn_a_zombieB =
|
|||
szombie.larm.deadflag = 1;
|
||||
szombie.rarm.deadflag = 1;
|
||||
|
||||
setmodel(szombie.head, "models/ai/zhead.mdl");
|
||||
setmodel(szombie.rarm, "models/ai/zrarm.mdl");
|
||||
setmodel(szombie.larm, "models/ai/zlarm.mdl");
|
||||
setmodel(szombie.head, "models/ai/zh^.mdl");
|
||||
setmodel(szombie.rarm, "models/ai/zar(.mdl");
|
||||
setmodel(szombie.larm, "models/ai/zal(.mdl");
|
||||
#ifndef PC
|
||||
updateLimb (szombie, 0, szombie.head);
|
||||
updateLimb (szombie, 1, szombie.larm);
|
||||
|
@ -1647,7 +1647,7 @@ void(entity where) spawn_a_zombieB =
|
|||
|
||||
szombie.solid = szombie.head.solid = SOLID_CORPSE;
|
||||
szombie.movetype = MOVETYPE_WALK;
|
||||
setmodel(szombie, "models/ai/zbod.mdl");
|
||||
setmodel(szombie, "models/ai/zb#.mdl");
|
||||
szombie.hop_step = 0;
|
||||
szombie.gravity = 1.0;
|
||||
|
||||
|
@ -1730,7 +1730,7 @@ void(entity where) spawn_a_zombieB =
|
|||
self.th_walk();
|
||||
self = old_self;
|
||||
|
||||
LinkZombiesHitbox();
|
||||
//LinkZombiesHitbox();
|
||||
|
||||
#ifndef PC
|
||||
//
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
server/clientfuncs.qc
|
||||
|
||||
used to communicate between server and client
|
||||
Used to communicate between server and client
|
||||
|
||||
Copyright (C) 2021-2022 NZ:P Team
|
||||
|
||||
|
@ -675,4 +675,4 @@ float(float weapon) Util_WeaponFiresTraceshot =
|
|||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -155,17 +155,17 @@ void() precaches =
|
|||
|
||||
// zombie
|
||||
precache_model ("models/ai/zfull.mdl");
|
||||
precache_model ("models/ai/zlarm.mdl");
|
||||
precache_model ("models/ai/zrarm.mdl");
|
||||
precache_model ("models/ai/zbod.mdl");
|
||||
precache_model ("models/ai/zhead.mdl");
|
||||
precache_model ("models/ai/zal(.mdl");
|
||||
precache_model ("models/ai/zar(.mdl");
|
||||
precache_model ("models/ai/zb#.mdl");
|
||||
precache_model ("models/ai/zh^.mdl");
|
||||
|
||||
// zombie crawler
|
||||
precache_model ("models/ai/zcfull.mdl");
|
||||
precache_model ("models/ai/zcbod.mdl");
|
||||
precache_model ("models/ai/zclarm.mdl");
|
||||
precache_model ("models/ai/zcrarm.mdl");
|
||||
precache_model ("models/ai/zchead.mdl");
|
||||
precache_model ("models/ai/zbc#.mdl");
|
||||
precache_model ("models/ai/zalc(.mdl");
|
||||
precache_model ("models/ai/zarc(.mdl");
|
||||
precache_model ("models/ai/zhc^.mdl");
|
||||
|
||||
// powerups
|
||||
precache_model ("models/sprites/explosion.spr");
|
||||
|
@ -396,7 +396,7 @@ void() RelinkZombies =
|
|||
//if(OnlyOrigin)
|
||||
// continue;
|
||||
|
||||
/*
|
||||
|
||||
min = ent2.bbmins + (v_right * ent2.view_ofs_x) + (v_forward * ent2.view_ofs_y) + (v_up * ent2.view_ofs_z);
|
||||
max = ent2.bbmaxs + (v_right * ent2.view_ofs_x) + (v_forward * ent2.view_ofs_y) + (v_up * ent2.view_ofs_z);
|
||||
|
||||
|
@ -405,7 +405,7 @@ void() RelinkZombies =
|
|||
if(min_z > max_z) { min_z += max_z; max_z = min_z - max_z; min_z -= max_z; }
|
||||
|
||||
setsize(ent2,min,max);
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -726,6 +726,7 @@ void Parse_Damage () = // DO NOT TOUCH
|
|||
|
||||
body_ent.usedent = self;
|
||||
body_ent.bleedingtime = time + 2;
|
||||
updateLimb (body_ent.head.owner, 0, world);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -747,7 +748,7 @@ void Parse_Damage () = // DO NOT TOUCH
|
|||
body_ent.larm.solid = SOLID_NOT;
|
||||
setmodel(body_ent.larm,"");
|
||||
body_ent.larm.frame = 0;
|
||||
//updateLimb (body_ent.larm.owner, 1, world);
|
||||
updateLimb (body_ent.larm.owner, 1, world);
|
||||
}
|
||||
|
||||
body_ent.larm.washit = 0;
|
||||
|
@ -767,7 +768,7 @@ void Parse_Damage () = // DO NOT TOUCH
|
|||
body_ent.rarm.solid = SOLID_NOT;
|
||||
setmodel(body_ent.rarm,"");
|
||||
body_ent.rarm.frame = 0;
|
||||
//updateLimb (body_ent.rarm.owner, 2, world);
|
||||
updateLimb (body_ent.rarm.owner, 2, world);
|
||||
}
|
||||
|
||||
body_ent.rarm.washit = 0;
|
||||
|
|
Loading…
Reference in a new issue