View Full Version : Changing mats during the game...
SunCrusher
01-12-2001, 08:36 PM
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?
Hell Raiser
01-12-2001, 11:06 PM
Not possible. Only way to do it is if you have a different 3do with all the different damage mats in all the possible combinations.
------------------
-Hell Raiser
"I am not defeated so easily!"
Co-staffer of Rbots (http://rbots.massassi.net/)
SunCrusher
01-13-2001, 05:39 AM
Ok, lets say I have a new 3do for he gets shot in the chest. How would I go about making a cog that would change his 3do? I think I'd have to make it so the cog would activate when he reaches 50% health.
Aglar
01-13-2001, 09:32 AM
SetThingModel();
------------------
Together we stand.
Divided we fall.
Aglar
01-13-2001, 10:32 AM
I got bored, so I wrote you the cog 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
Works great. ky.3do and kyh4.3do can be changed to whatever you want.
------------------
Together we stand.
Divided we fall.
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.