fix enforcers firing unmoving projectiles

This commit is contained in:
alison wright 2019-09-19 19:50:30 -04:00
parent 6bca60e74a
commit c140ffe07d
2 changed files with 4 additions and 3 deletions

View File

@ -60,14 +60,14 @@ void() Laser_Touch = {
remove(self); remove(self);
}; };
void(vector org, vector vec) LaunchLaser = { void(vector org, vector vec_to) LaunchLaser = {
vector vec; vector vec;
if(self.classname == "monster_enforcer") { if(self.classname == "monster_enforcer") {
sound(self, CHAN_WEAPON, "enforcer/enfire.wav", 1, ATTN_NORM); sound(self, CHAN_WEAPON, "enforcer/enfire.wav", 1, ATTN_NORM);
} }
vec = normalize(vec); vec = normalize(vec_to);
newmis = spawn(); newmis = spawn();
newmis.owner = self; newmis.owner = self;

3
todo
View File

@ -1,6 +1,6 @@
bugs: bugs:
enforcers are broken none
refactoring: refactoring:
@ -32,5 +32,6 @@ done:
corpse pickups have keys corpse pickups have keys
custom pronouns custom pronouns
distributed ammo distributed ammo
enforcers are broken
lives counting lives counting
no friendly fire no friendly fire