How can i give frags to a player???

Post your scripting questions / solutions here

Moderator: Moderators

Magus CPD OZZY
Private
Posts: 8
Joined: Fri Mar 21, 2003 12:47 pm

How can i give frags to a player???

Post by Magus CPD OZZY »

Someone know how i can give some frags when a player do the OBJ.... or frags for the team.....

thanks....
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

cheat

Post by tltrude »

Sounds like you're trying to inflate/cheat the player ranking system at the site below to me.

http://www.computerandvideogames.com/r/ ... /index.asp
Tom Trude,

Image
Magus CPD OZZY
Private
Posts: 8
Joined: Fri Mar 21, 2003 12:47 pm

tsk

Post by Magus CPD OZZY »

hey if you dont know how dont piss me off....

i only want to give frags to players that blow up my bridge....

its sucks....
User avatar
Ace of Spades
Major
Posts: 291
Joined: Thu Jan 30, 2003 8:50 am
Location: West Coast, USA

Post by Ace of Spades »

Whoa! Dude, why so upset? I don't think he meant anything mean by it, we all like to joke around a little here and we try not to hurt anyone's feelings on purpose. Take it easy, pal!
nihilo
Sergeant Major
Posts: 107
Joined: Thu Mar 13, 2003 6:07 am

Post by nihilo »

can't say I know how, but the idea is pretty good.

Sounds like he wants to reward a player for completing the objective with frags, kinda like in team fortress classic. May be good for encouraging more teamwork.
Yarik
General
Posts: 1031
Joined: Thu Jan 09, 2003 7:12 pm
Contact:

Post by Yarik »

Umm what are frags???
Skype: Yarik_usa
www.skype.com <---free pc2pc phone
Image
Angex
Major
Posts: 293
Joined: Mon Dec 30, 2002 1:23 pm
Contact:

Post by Angex »

Yarik wrote:Umm what are frags???
A point awarded to a player when they killed someone in an MP game.
Yarik
General
Posts: 1031
Joined: Thu Jan 09, 2003 7:12 pm
Contact:

Post by Yarik »

Dont we already get that? Or what he means is it will go into your user status. So that other clans can see how good you play is that it?
Skype: Yarik_usa
www.skype.com <---free pc2pc phone
Image
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

yes, yes, yes!!!...

it's possible as almost everything is with radiant... except compiling with removable lightbulbs (i know it's still possible but not as easy as we wish)

do you want this person to get frags at the end of the level if the objective has been completed, or get the bonus ingame and recieve a bonus from doing the objective...

once we know what u want 2 happen from this point forth JV will do the script 4 ya... he's good like that :D if he don't then just sack him, i'll have a look at it myself :P
hope this helps, prob not cos it's all foreign 2 me :-/
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

One stupid question:

What exactly do frags mean in this case?
Live to map, not map to live.
-mohaa_rox, .map
moderator
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

well now u should ask...

a frag = in Quake 3 a kill of another player
a frag = a type of explosive
a frag = some1 who can't spell "frog", why they'd want 2 type that i don't know...

but if they wanted 2 reward some1 4 completing the objective then their way of doing it might b 2 reward them a "frag", a kind of reconciliation for completing an important mission, but the thing i was wondering... is what time do you want this player 2 recieve this "reward", before next mission, during gameplay, or just on scorebaord... :?:
hope this helps, prob not cos it's all foreign 2 me :-/
Magus CPD OZZY
Private
Posts: 8
Joined: Fri Mar 21, 2003 12:47 pm

hehehe

Post by Magus CPD OZZY »

sorry for the second post.....

ok is something that i want to do because the people play the OBJs maps like they play DMs Maps only for kill each other and i want to give bonus to who do my OBJ.....

Someone in another forum post something like that:


local.planter addkills 5

or whatever number you want to add. Obviouly rename local.planter to whatever your
local varible name is for the player. parm.other may also work.

To add kills to all players on a team you will need to loop through the players array
- $player[n]. Check their team and add kills if relevant. Haven't checked the exact
syntax but somethhing like this:

for (local.i = 1; local.i <= 32; i++)
{
if ($player[local.i])
{
if ($player[local.i].dmteam == allies))
{
$player[local.i] addkills 5
}
}
}




But i cant make it work....
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

I tried that also and it didn't work. 'Addkills' is not a valid command, for mohaa at least. :(
Image
Magus CPD OZZY
Private
Posts: 8
Joined: Fri Mar 21, 2003 12:47 pm

sucks...

Post by Magus CPD OZZY »

Yes i think it too jv!

But if you look in the .html that came with the SDK you can find the addkills....
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Maybe it's a Spearhead thing :?
Image
Post Reply