mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-26 05:41:20 +00:00
SERVER: Add wall chalk support for the DG-2 and MP5K
This commit is contained in:
parent
ba1c3aaa41
commit
64db82d124
1 changed files with 17 additions and 4 deletions
|
@ -254,10 +254,23 @@ void() use_wall_weapon =
|
|||
newent.solid=SOLID_NOT;
|
||||
newent.classname = "wall_weapon";
|
||||
setorigin(newent, self.origin);
|
||||
if (self.sequence + 1 != 26)
|
||||
setmodel (newent, GetWeaponModel(self.sequence + 1, 1));
|
||||
else
|
||||
|
||||
// MP5K and Waffe were added in late in the mix-up.. needs special case. Also grenade bag.
|
||||
switch(self.sequence + 1) {
|
||||
case 26: // Grenade bag
|
||||
setmodel(newent, "models/props/grenade_bag.mdl");
|
||||
break;
|
||||
case 29: // MP5K
|
||||
setmodel(newent, GetWeaponModel(W_MP5K, 1));
|
||||
break;
|
||||
case 28: // Waffe
|
||||
setmodel(newent, GetWeaponModel(W_TESLA, 1));
|
||||
break;
|
||||
default:
|
||||
setmodel (newent, GetWeaponModel(self.sequence + 1, 1));
|
||||
break;
|
||||
}
|
||||
|
||||
setsize (newent, VEC_HULL2_MIN, VEC_HULL2_MAX);
|
||||
newent.angles = self.angles;
|
||||
|
||||
|
|
Loading…
Reference in a new issue