mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-25 13:21:32 +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 =
|
void() item_radio =
|
||||||
{
|
{
|
||||||
if (!self.model)
|
if (!self.model) self.model = "models/props/radio.mdl";
|
||||||
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_model (self.model);
|
||||||
precache_sound ("sounds/misc/radio.wav");
|
precache_sound ("sounds/misc/radio.wav");
|
||||||
|
@ -111,7 +112,7 @@ void() item_radio =
|
||||||
self.solid=SOLID_BBOX;
|
self.solid=SOLID_BBOX;
|
||||||
self.classname = "item_radio";
|
self.classname = "item_radio";
|
||||||
setmodel (self, self.model);
|
setmodel (self, self.model);
|
||||||
setsize (self, '-8 -8 -4', '8 8 4');
|
setsize (self, self.mins, self.maxs);
|
||||||
|
|
||||||
self.takedamage = DAMAGE_YES;
|
self.takedamage = DAMAGE_YES;
|
||||||
self.health = 1;
|
self.health = 1;
|
||||||
|
|
Loading…
Reference in a new issue