Code:
# players.cog
#
# Jedi Knight COG script
#
# [JEPMAN]
#
#
# Showdown "Code Engine"
symbols
flags=0x240
model knightdisplay=knightdisplay.3do
model magedisplay=magedisplay.3do
model knight=knight1.3do
model mage=mage1.3do
model playermodel local
thing player local
message startup
end
# .......................................................
code
startup:
Sleep(0.2);
player=GetSourceRef();
playermodel = GetThingModel(player);
if(playermodel == knightdisplay)
{
SetThingModel(player, knight);
ParseArg(player, "puppet=ky.pup");
}
else
if(playermodel == magedisplay)
{
SetThingModel(player, mage);
ParseArg(player, "puppet=ky.pup");
}
else
if(playermodel == -1)
{
Sleep(0.2);
Print("Your model is invalid?");
}
else
{
Sleep(0.2);
print("Please choose a Showdown fighter");
}
print("All models checked for.");
Return;
end------------------
-Jepster
If you don't like me, I got two words for you. Guess what they are cuz I'd get banned from here if I told you.
[This message has been edited by Jepster (edited October 25, 2001).]