Post your scripting questions / solutions here
Moderator: Moderators
Barttje
Sergeant Major
Posts: 111 Joined: Sat Aug 20, 2005 8:52 pm
Post
by Barttje » Wed Sep 14, 2005 3:23 pm
How can i script a coloured spotlight, something like "crazy server":
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 » Wed Sep 14, 2005 4:50 pm
Ask Cardevsan @
MRU , it's his server.
Barttje
Sergeant Major
Posts: 111 Joined: Sat Aug 20, 2005 8:52 pm
Post
by Barttje » Wed Sep 14, 2005 6:01 pm
how can i get contact with him....?
At0miC
General
Posts: 1164 Joined: Fri Feb 27, 2004 11:29 pm
Location: The Netherlands
Post
by At0miC » Wed Sep 14, 2005 6:03 pm
Forum
Barttje
Sergeant Major
Posts: 111 Joined: Sat Aug 20, 2005 8:52 pm
Post
by Barttje » Wed Sep 14, 2005 6:05 pm
oh comeone guys. couldn't you do something for me...
Barttje
Sergeant Major
Posts: 111 Joined: Sat Aug 20, 2005 8:52 pm
Post
by Barttje » Wed Sep 14, 2005 7:26 pm
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 » Wed Sep 14, 2005 7:33 pm
ahh, and you dont know what to edit n so on, I C now
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 » Wed Sep 14, 2005 7:56 pm
Come on, what's the problem in getting an account at MRU and private messaging Cardevsan?
Barttje
Sergeant Major
Posts: 111 Joined: Sat Aug 20, 2005 8:52 pm
Post
by Barttje » Thu Sep 15, 2005 1:32 pm
Is "Cardevsan " the person i must send my quistion....?
k47a
товарищ
Posts: 810 Joined: Fri Mar 25, 2005 1:19 pm
Post
by k47a » Thu Sep 15, 2005 1:45 pm
obviously...
lizardkid
Windows Zealot
Posts: 3672 Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT
Post
by lizardkid » Thu Sep 15, 2005 3:58 pm
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
bdbodger
Moderator
Posts: 2596 Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:
Post
by bdbodger » Fri Sep 16, 2005 3:33 am
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
Barttje
Sergeant Major
Posts: 111 Joined: Sat Aug 20, 2005 8:52 pm
Post
by Barttje » Fri Sep 16, 2005 2:21 pm
something must be wrong, because he is not doing it....
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 » Fri Sep 16, 2005 3:21 pm
Post your script, that way we can look it over