View Full Version : Last guy to die
rtqbsm
04-09-2004, 06:39 AM
I was wondering how do you make it so that the last guy to die in a small group of guys your fighting will have a cinematic rather than one specified guy? I know how to do the cinematic on death stuff, but I don't know how to do this.
Jokke_r
04-09-2004, 06:58 AM
you gotta make a death counter... don't remember exactly ATM how it's done but i think somone can explain better... i gotta check my lobby cos i have a deathcounter there.. just can't remember how it worked...
Maddieman
04-09-2004, 07:05 AM
Death counters are explained in this tutorial:
http://www.rockstargames.com/maxpayne/tutorials/MaxED/ai_scripting.htm
It's for MaxEd1, but the processes is exactly the same for MaxEd2 (UI differences aside).
Uisor
04-09-2004, 08:40 AM
and it was also explained in here too, not that long ago.
rtqbsm
04-09-2004, 10:26 AM
I have the death counter and to the most of my understanding I think I have everything right, but when I kill enemy1 first it does a death cam for enemy2. And when I kill enemy2 first it does a death cam for himself.
Could some explain what i might be doing wrong or where the problem might be.
Basically you have a FSM_Send for every guy in the group, when one of these die, they run their "add" FSM_Send from the DeathCounterFSM. Every of these add FSM_sends checks the current SwitchState (the number of the enemies), for example if the switch is on 2 (1 guy has died before the current) it has message to switch it forward to 3. Only in last state you fire up the deathcam.
rtqbsm
04-09-2004, 11:15 AM
Nevermind, I got the death counter working. Thanx for your input you guys. Especially Maddieman for the link.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.