Page 3 of 3

Posted: Wed Apr 21, 2004 11:44 pm
by Cobra {sfx}
Hi Bodger m8, i tried that one , it printed NIL on everyones screen even tho only 1 person triggered it.

Tom and i were messing round with it earlier and this one works with the countdown...

hudtest:

local.fuel = 60
while (local.fuel > 0)
{
huddraw_rect 187 140 -84 50 50
huddraw_color 187 .75 .65 .1
huddraw_font 187 "facfont-20"
huddraw_string 187 ("Fuel Remaining: " + (local.fuel) + " seconds" )
huddraw_align 187 left bottom
huddraw_alpha 187 1
local.fuel = local.fuel - 1
local.fuel = (int(local.fuel))
wait 1 //refresh time
}
waitframe
end

however ... we ran into the same problem, showin on everyones screen, even tho it was only triggered by 1 person.

heres where it threads from...


jetpack2:

local.trig2 = spawn trigger_multiple
local.trig2.origin = ( 2297 4547 -217 ) //allied
local.color = ( 0.0 2.0 0.0 )
local.trig2 setsize ( -50 -50 -50 ) ( 50 50 50 )
local.trig2 setthread Gravity2
local.trig2 message "JetPack Obtained!"
local.trig2 wait 4
local.trig2 delay 0
end


Gravity2:
self waittill trigger
local.player=parm.other
local.player.Gravity=1
local.player gravity .1
local.player stufftext "say Ive Captured a JetPack! :)"
local.player.Gravity=1
thread hudtest
end

see anything that can get it to display to the person that triggered it only?

Cobra

Posted: Thu Apr 22, 2004 12:53 am
by Cobra {sfx}
nuggets wrote:how about using the stopwatch for the jetpack

parm.other stopwatch 20
just tried that Nuggets and it works, each player get their own timer! :)

i misread it the first time around - i thought it said timer - i was thinkin of the bombs timer lol nice one ;)
also it was gonna be for an obj map but at the mo the servers a tdm so this works good, toms been enhancin it more :P
however ... still need summat different for an obj map
Cobra

Posted: Thu Apr 22, 2004 5:14 am
by bdbodger
if you are going to do local.player = parm.other in the first thead then pass the player to the second thread

thread hudprint local.player

hudprint local.player:


also I made the same mistake you did in the hudstring I used level.fuelbar not level.fuel

Posted: Thu Apr 22, 2004 11:10 am
by Cobra {sfx}
Cheers Bodger, ill try that with the objective version see if suitable :)


Cobra