Server: Define an action for shooting an Explosive Barrel with the Wunderwaffe

Now instantly explodes; fixes crashing issue
This commit is contained in:
Ian 2022-12-09 17:20:57 -05:00 committed by GitHub
parent 6afcdc3ecb
commit 75547beb64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -117,6 +117,9 @@ void() explosive_barrel =
Precache_Set(self.model); Precache_Set(self.model);
setsize (self, '-10 -10 ', '10 10 38'); setsize (self, '-10 -10 ', '10 10 38');
// Instantly die when shot with the Wunderwaffe
self.th_diewunder = Barrel_Explode;
self.takedamage = DAMAGE_YES; self.takedamage = DAMAGE_YES;
self.state = 0; self.state = 0;
}; };