Hey, I want to make it when I get shot in JK my chest becomes a new mat with damage on it. Is it possible? If so, how would I go about doing this?
This is the static archive of the Massassi Forums. The forums are
closed indefinitely. Thanks for all the memories!
You can also download
Super Old Archived Message Boards
from when Massassi first started.
"View" counts are as of the day the forums were archived, and will no longer increase.
![http://forums.massassi.net/html/smile.gif [http://forums.massassi.net/html/smile.gif]](http://forums.massassi.net/html/smile.gif)
#============================================================
# damagep.cog
# changes the players model depending on what their health is
# Not supported by LucasArts because they suck
# (C) Jay Inc. 01\13\01
# -Aglar
#============================================================
symbols
message startup
message pulse
model damaged=kyh4.3do
model healthy=ky.3do
end
#============================================================
code
startup:
SetPulse(0.1);
Return;
#============================================================
pulse:
player = GetSourceRef();
health = GetThingHealth(player);
if (health <= 50)
{
SetThingModel(player, damaged);
}
else
{
if (health >= 50)
{
SetThingModel(player, healthy);
}
}
Return;
#============================================================
end