Scripting, Xp is rewarded to 1 person only - how?


(Loffy) #1

Hallo Et freaks!
Is it possible to reward XP to one (1) person only?
Example: There are 2 goldbars (Gold Rush-style). Person A, let’s call him Laffy, steals the gold and delivers it to the goal.
How can I as a mapper create a map + script that gives Laffy 3 Xp, for example, when he does the above?
If Laffy steals and deliver the second gold crate, he gets a total of atleast 6 Xp.

// Loffy


(nUllSkillZ) #2

Not sure if this is possible.
But if so I hink only the one that secures the docu’s could be rewarded.
(In case Laffy steals the gold but couldn’t reach the secure zone [edit]and drops the gold[/edit].
His teammate Liffy takes the gold and secures it.
So Liffy is being rewarded.)

Edit:

And then there could be rewards for the person of the opposite team that secures a dropped gold.
May be only 1 XP (securing dropped gold happens much more then securing them).

[edit2]
May be it’s also possible to reward Laffy for stealing the gold and Liffy for securing it.
May be for both 2 XP.
If Laffy steals and secures the gold he would get 4 XP.
[/edit2]


(Chruker) #3

I think they already get gamepoints.

Perhaps you can make a func_explosive which destroys on touch, and then have it appear when the objective guy delivers the objective… nah… I haven’t worked enough with objective flags to know what I’m talking about.

However which skill should the XP be given too? I guess the battlesense would be most appropriate.

BTW, Loffy, funny signature.


(Watcher) #4

Also doing that you could have 2 players working together to get tons of XP, Liffy has gold he is freinds with Latty, Liffy kills himself and latty gets the gold then latty kills himself and so on and so on


(nUllSkillZ) #5

@watcher:
No, think thats not possible.

Because you have two events:
“team_CTF_xxxxflag.stolen” and “team_CTF_xxxxflag.captured” (or “trigger_flagonly_multiple.death”).
And for returning “team_CTF_xxxxflag.returned”.
So only the players which trigger these events could get XP’s.