Page 1 of 3

Spotlight

Posted: Wed Sep 14, 2005 3:23 pm
by Barttje
How can i script a coloured spotlight, something like "crazy server":

Image



can someone help me, tnx.

Posted: Wed Sep 14, 2005 4:50 pm
by Rookie One.pl
Ask Cardevsan @ MRU, it's his server.

Posted: Wed Sep 14, 2005 6:01 pm
by Barttje
how can i get contact with him....? :?

Posted: Wed Sep 14, 2005 6:03 pm
by At0miC
Forum

Posted: Wed Sep 14, 2005 6:05 pm
by Barttje
oh comeone guys. couldn't you do something for me... :cry: :(

Posted: Wed Sep 14, 2005 6:13 pm
by Green Beret
bdbodger also has one
http://dynamic.gamespy.com/~map/mohaa/f ... rspotlight
I use it and never have troubles, its a good script :wink:

Posted: Wed Sep 14, 2005 7:26 pm
by Barttje
yeah i know, i have that script, but i want it not with the use key only the light....

Posted: Wed Sep 14, 2005 7:33 pm
by Green Beret
ahh, and you dont know what to edit n so on, I C now :P

Posted: Wed Sep 14, 2005 7:56 pm
by Rookie One.pl
Come on, what's the problem in getting an account at MRU and private messaging Cardevsan?

Posted: Thu Sep 15, 2005 1:32 pm
by Barttje
Is "Cardevsan" the person i must send my quistion....?

Posted: Thu Sep 15, 2005 1:45 pm
by k47a
obviously...

Posted: Thu Sep 15, 2005 3:58 pm
by lizardkid
Unless they published the mod, it's extremely doubtful anyone here will know how to do it. even less, want to do it when it's already been done. Just ask the author how to do it or get the script.

Posted: Fri Sep 16, 2005 3:33 am
by bdbodger
The spotlight is miscobj/searchlightoff.tik

The light inside it is done like this


local.light = spawn script_model
local.light model "fx/searchlight.tik"
local.light notsolid
local.light.origin = local.spot.origin + local.spot.forwardvector * -16

The beam is

local.beam = spawn func_beam origin local.spot.origin
local.beam alpha .2
local.beam maxoffset 0
local.beam numsegments 20
local.beam scale 50
local.beam activate
local.beam life .1
local.beam color local.color // set a color r g b values

the flare at the end of the beam is done like this

local.flare = spawn script_model
local.flare model "fx/searchlight.tik"
local.flare notsolid
local.flare scale 5
local.flare light local.color // set a color r g b values
local.flare lightradius 250

aim the spot like this

local.groundspot_target = spawn script_origin

local.groundspot_target.origin = local.spot.origin + local.spot.forwardvector * -10240

local.p = trace local.spot.origin local.groundspot_target.origin 0

local.beam endpoint local.p

local.flare.origin = local.p

Posted: Fri Sep 16, 2005 2:21 pm
by Barttje
something must be wrong, because he is not doing it.... :x

but i don't see anything wrong.... :(

Posted: Fri Sep 16, 2005 3:21 pm
by Green Beret
Post your script, that way we can look it over :wink: