SERVER: Add wall chalk support for the DG-2 and MP5K

This commit is contained in:
Steam Deck User 2023-01-12 21:01:13 -05:00
parent ba1c3aaa41
commit 64db82d124

View file

@ -254,10 +254,23 @@ void() use_wall_weapon =
newent.solid=SOLID_NOT; newent.solid=SOLID_NOT;
newent.classname = "wall_weapon"; newent.classname = "wall_weapon";
setorigin(newent, self.origin); setorigin(newent, self.origin);
if (self.sequence + 1 != 26)
setmodel (newent, GetWeaponModel(self.sequence + 1, 1)); // MP5K and Waffe were added in late in the mix-up.. needs special case. Also grenade bag.
else switch(self.sequence + 1) {
setmodel(newent, "models/props/grenade_bag.mdl"); 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); setsize (newent, VEC_HULL2_MIN, VEC_HULL2_MAX);
newent.angles = self.angles; newent.angles = self.angles;