mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-21 19:32:21 +00:00
SERVER: Allow custom mins/maxs for item_radio
This commit is contained in:
parent
1665792e45
commit
d6f7a09967
1 changed files with 4 additions and 3 deletions
|
@ -94,8 +94,9 @@ void() radio_hit =
|
|||
|
||||
void() item_radio =
|
||||
{
|
||||
if (!self.model)
|
||||
self.model = "models/props/radio.mdl";
|
||||
if (!self.model) self.model = "models/props/radio.mdl";
|
||||
if (!self.mins) self.mins = '-8 -8 -4';
|
||||
if (!self.maxs) self.maxs = '8 8 4';
|
||||
|
||||
precache_model (self.model);
|
||||
precache_sound ("sounds/misc/radio.wav");
|
||||
|
@ -111,7 +112,7 @@ void() item_radio =
|
|||
self.solid=SOLID_BBOX;
|
||||
self.classname = "item_radio";
|
||||
setmodel (self, self.model);
|
||||
setsize (self, '-8 -8 -4', '8 8 4');
|
||||
setsize (self, self.mins, self.maxs);
|
||||
|
||||
self.takedamage = DAMAGE_YES;
|
||||
self.health = 1;
|
||||
|
|
Loading…
Reference in a new issue