View Full Version : What makes the enemies
Akari
01-13-2003, 06:59 PM
drop there weapon? I know about the effect item_drop but what tells them to drop a level_item? Thanks
Akari
01-13-2003, 07:33 PM
Ok I got it.
neeek
01-14-2003, 07:30 AM
you got it eh? im interested how you reached to your conclusion and got what you are looking, xplain sir.
william ford
01-14-2003, 09:30 PM
Well he probably had a look in the messages.html
Maddieman
01-14-2003, 09:43 PM
Just in case anyone else wants to know how to do this, I'll provide the code. I can't count how many times I've found the answers to seemingly impossible questions in these forum archives.
Anyway,
Add this code in the skin/skeleton animation (usually a death animation, otherwise the enemy starts to shoot out of his hand):
</font><blockquote><font size="1" face="Verdana, Arial">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;"> [Message] Frame = 0; String = "LeftHandWeapon->WS_Animate(" WEAPONANIM_DROPONDEATH ");";
[Message] Frame = 1; String = "RightHandWeapon->WS_Animate(" WEAPONANIM_DROPONDEATH ");";
[/code]</blockquote><font size="2" face="Verdana, Arial">And then in the script for the weapon itself:
</font><blockquote><font size="1" face="Verdana, Arial">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;"> [Animation] Index = WEAPONANIM_DROPONDEATH; Filename = spin.kf2;
[Properties]
{
[Message] Frame = 0; String = "this->WS_Hide( " TRUE " );";
[Message] Frame = 0; String = "this->li_CreateLevelItem( katana );";
}
[/code]</blockquote><font size="2" face="Verdana, Arial">No prizes for guessing what this specific entry does. images/icons/wink.gif
[ 01-14-2003, 09:47 PM: Message edited by: Maddieman ]
william ford
01-14-2003, 10:09 PM
Add this code in the skin/skeleton animation (usually a death animation, otherwise the enemy starts to shoot out of his hand): <font size="2" face="Verdana, Arial">Answer:C_RemoveAllWeapons(empty); Wait...is that right?
Maddieman
01-15-2003, 04:55 AM
Yes, that'll do it, but it's not necessary unless you're disarming them without killing them.
vBulletin® v3.8.0 Beta 3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.