PDA

View Full Version : get current "Spree-Number" ... ?



GuntiNDDS
08-23-2003, 01:36 PM
hello,

i would like to have an additional "panel" below the adrenaline one (the same actually), but it should not count the adrenaline, but the kills since the last respawn, meaning it should count the kills and reset them to 0 if the player dies. someone once stated that it should technically be possible quite easy, because the counting variable is allready there ( for the sprees ), so actually all it gotta do is read that value out and display it in an addional "panel" below the adrenaline one. i would code that my own, but i dont want to dig into unrealscript just for that mutator, because i have no ideas for other ones and actually just REALLY like to have that one.

so as hope remains i ask again, if someone might want to make this mutator, or may share some code doing the descripted above in here.

Please, if you wonder what that mutator is for, yes, i can count. but no, not in game. i had a thread about this a while back and ppl just came in shouting i may count the kills between the sprees. i have to concentrate on other thins in-game.

thanks.

Sir_Brizz
08-23-2003, 02:41 PM
from the mutant code:



uPred = UnrealPlayer(Pred);
if(uPred != None)
uPred.MultiKillLevel = 0;


In other words, a Pawn can be casted to an UnrealPlayer to get their MultiKillLevel. Hope that helps you out.

GuntiNDDS
08-23-2003, 03:17 PM
hi, thanks for your reply. this is beginning. now i need to somehow find the code to display it on screen and turn that all into a mutator.

legacy-Melaneus
08-23-2003, 11:02 PM
I think it would be easier to add gamerules that add to a variable every time the player makes a kill.

Sprees are calculated this way in TeamReplicationInfo:
var byte Spree[6];

6 numbers for each level of spree. When one fills up, it switches to the next one. Good luck trying to translate that into a flat spree amount...

GuntiNDDS
08-24-2003, 07:03 AM
i see. thank you for the info.

do you think coding such mutator would take alot of time ( the adding to the variable on each kill shouldnt be a problem, or?, not sure about the display on screen, so.)

legacy-NickR
08-24-2003, 11:12 AM
Actually you can get the exact spree number from the Spree var in the UnrealPawn class.

GuntiNDDS
08-24-2003, 06:57 PM
thanks.

... but... to be honest...

my goal is to have someone of you code it for me. i code alot different programming languages, but unreal-script is not part of them, and as my company currently ripps me most of my time, i have no time to really get into it. because if i'd be coding it, i'd to spent alot of time learning the language first, while for someone with experience in unrealscript, its maybe even a very simple task that can be done within a few minutes.

so in general, if anyone of you got a few minutes and would like to make me a little present, that would be really fanstastic. if not so, then its surely no problem and i'd thank you for the tips you posted.