decore_torch: will now spawn torchflame
decore_cactus: update QUAKED comment
This commit is contained in:
parent
1bb4a00076
commit
9656d9dff7
5 changed files with 32 additions and 2 deletions
|
@ -16,6 +16,8 @@
|
|||
|
||||
/*QUAKED decore_cactus (0 0.8 0.8) (-16 -16 0) (16 16 64)
|
||||
This is a decorative entity from Gunman Chronicles.
|
||||
It will hurt the player whenever it gets touched.
|
||||
The damage is 1 health point per second.
|
||||
|
||||
-------- KEYS --------
|
||||
"targetname" : Name
|
||||
|
|
|
@ -35,4 +35,5 @@ decore_prickle::decore_prickle(void)
|
|||
model = "models/prickle.mdl";
|
||||
mins = [-8, -8, 0];
|
||||
maxs = [8, 8, 8];
|
||||
m_bDropToFloor = true;
|
||||
}
|
||||
|
|
|
@ -26,9 +26,24 @@ model="models/torch.mdl"
|
|||
|
||||
class decore_torch:RWDecore
|
||||
{
|
||||
decore_torchflame flame;
|
||||
|
||||
void(void) decore_torch;
|
||||
|
||||
virtual void(void) Spawned;
|
||||
};
|
||||
|
||||
void
|
||||
decore_torch::Spawned(void)
|
||||
{
|
||||
super::Spawned();
|
||||
|
||||
if (!flame)
|
||||
flame = spawn(decore_torchflame);
|
||||
|
||||
flame.origin = flame.m_oldOrigin = origin + [0,0,32];
|
||||
}
|
||||
|
||||
void
|
||||
decore_torch::decore_torch(void)
|
||||
{
|
||||
|
|
|
@ -27,8 +27,20 @@ model="sprites/flames.spr"
|
|||
class decore_torchflame:RWDecore
|
||||
{
|
||||
void(void) decore_torchflame;
|
||||
|
||||
virtual void(void) Respawn;
|
||||
};
|
||||
|
||||
void
|
||||
decore_torchflame::Respawn(void)
|
||||
{
|
||||
super::Respawn();
|
||||
|
||||
SetRenderMode(RM_ADDITIVE);
|
||||
SetRenderColor([1,1,1]);
|
||||
SetRenderAmt(1.0f);
|
||||
}
|
||||
|
||||
void
|
||||
decore_torchflame::decore_torchflame(void)
|
||||
{
|
||||
|
|
|
@ -44,8 +44,8 @@ decore_prickle.qc
|
|||
decore_pteradon.qc
|
||||
decore_sittingtubemortar.qc
|
||||
decore_swampplants.qc
|
||||
decore_torch.qc
|
||||
decore_torchflame.qc
|
||||
decore_torch.qc
|
||||
|
||||
monster_cricket.qc
|
||||
monster_critter.qc
|
||||
|
|
Loading…
Reference in a new issue