decore_torch: will now spawn torchflame

decore_cactus: update QUAKED comment
This commit is contained in:
Marco Cawthorne 2022-07-22 17:38:17 -07:00
parent 1bb4a00076
commit 9656d9dff7
Signed by: eukara
GPG key ID: CE2032F0A2882A22
5 changed files with 32 additions and 2 deletions

View file

@ -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

View file

@ -35,4 +35,5 @@ decore_prickle::decore_prickle(void)
model = "models/prickle.mdl";
mins = [-8, -8, 0];
maxs = [8, 8, 8];
m_bDropToFloor = true;
}

View file

@ -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)
{

View file

@ -27,12 +27,24 @@ 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)
{
model = "sprites/flames.spr";
mins = [-4, -4, -8];
maxs = [4, 4, 16];
}
}

View file

@ -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