Sign in to follow this  
Moors

Finalkillcam.gsc

Recommended Posts

Hello

I got an issue with my finalkill cam. This killcam should work on cod4 bold servers wich actually do, but only on TDM server and not on my FFA server. I try to fix it myself but I didn't found anything that would explain why is not working. So if anyone here can help me out I would appreciate finallkillcam.gsc is attached with original finallkillcam gsc. thanks in advance for any tip or advice.

finalkillcam.txt

Share this post


Link to post
Share on other sites

There's no gametype-specific code so maybe its just not called properly?

Share this post


Link to post
Share on other sites

hm might be, but how works on tdm server? may I ask if you can add game type code into it please, or just give me a tip how should code look like. Thanks for response

Share this post


Link to post
Share on other sites

I mean this script might be called from war.gsc and not from dm.gsc.

Share this post


Link to post
Share on other sites

ye I know what you mean, but I got no war.gsc or dm.gsc. I also checked globallogic.gsc and also found nothing there no gametype code included. I will try to add gametype code and we will see.

Nope not working, I tried everything .. but if I edit globallogic and  try to disable current finalkillcam I get scripts errors.

Share this post


Link to post
Share on other sites

From where are you calling this killcam anyway? Can't really help without it as killcam script is irrelevant here.

Wild guess assuming it's endGame function in globallogic and you are using team name in killcam variables. 

In team based games (tdm, sd, sab,...) the "winner" in the function is team name but in non team-based (which is FFA) the "winner" is player entity. 

So if I'm correct you need to do this:

if( getDvar( "g_gametype" ) != "dm" )
   team = winner;
else
   team = winner.team;

  • Like 1

Share this post


Link to post
Share on other sites

Oh boy it worked :D I just changed ( winner ) to ( winner.team ) that's it lol, awesome. Thanks a lot leiizko!

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this