Spotlight

Post your scripting questions / solutions here

Moderator: Moderators

Barttje
Sergeant Major
Posts: 111
Joined: Sat Aug 20, 2005 8:52 pm

Spotlight

Post by Barttje »

How can i script a coloured spotlight, something like "crazy server":

Image



can someone help me, tnx.
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

Ask Cardevsan @ MRU, it's his server.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Barttje
Sergeant Major
Posts: 111
Joined: Sat Aug 20, 2005 8:52 pm

Post by Barttje »

how can i get contact with him....? :?
User avatar
At0miC
General
Posts: 1164
Joined: Fri Feb 27, 2004 11:29 pm
Location: The Netherlands

Post by At0miC »

Forum
Barttje
Sergeant Major
Posts: 111
Joined: Sat Aug 20, 2005 8:52 pm

Post by Barttje »

oh comeone guys. couldn't you do something for me... :cry: :(
Green Beret
Major General
Posts: 746
Joined: Mon Apr 19, 2004 12:21 pm
Contact:

Post 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:
Image
Barttje
Sergeant Major
Posts: 111
Joined: Sat Aug 20, 2005 8:52 pm

Post by Barttje »

yeah i know, i have that script, but i want it not with the use key only the light....
Green Beret
Major General
Posts: 746
Joined: Mon Apr 19, 2004 12:21 pm
Contact:

Post by Green Beret »

ahh, and you dont know what to edit n so on, I C now :P
Image
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

Come on, what's the problem in getting an account at MRU and private messaging Cardevsan?
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Barttje
Sergeant Major
Posts: 111
Joined: Sat Aug 20, 2005 8:52 pm

Post by Barttje »

Is "Cardevsan" the person i must send my quistion....?
User avatar
k47a
товарищ
Posts: 810
Joined: Fri Mar 25, 2005 1:19 pm

Post by k47a »

obviously...
Image
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post 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.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post 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
Image
Barttje
Sergeant Major
Posts: 111
Joined: Sat Aug 20, 2005 8:52 pm

Post by Barttje »

something must be wrong, because he is not doing it.... :x

but i don't see anything wrong.... :(
Green Beret
Major General
Posts: 746
Joined: Mon Apr 19, 2004 12:21 pm
Contact:

Post by Green Beret »

Post your script, that way we can look it over :wink:
Image
Post Reply