Post your scripting questions / solutions here
Moderator: Moderators
7th Es Cyborg
First Lieutenant
Posts: 189 Joined: Fri Dec 13, 2002 5:00 pm
Location: PA
Contact:
Post
by 7th Es Cyborg » Sun Jul 13, 2003 5:24 pm
when I add some objects into a map from the script they get a 'yellow' tint to them. It doesn't happen with some, but does with others. Does anyone know what causes this?
here's a pic
and here is how I spawned it in..
Code: Select all
spawn script_model "model" "models/static/sandbag_link_main.tik" "targetname" "sbag1" "origin" "-6108.28 -1664.12 54.00" "scale" "1.2" "angles" "0.00 30.00 0.00"
$sbag1 solid
jv_map
Site Admin
Posts: 6521 Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:
Post
by jv_map » Sun Jul 13, 2003 6:25 pm
Well I don't really see the yellowish tint but you can't reasonably expect static models to be correctly lit when you spawn them from the script.
Alcoholic
General
Posts: 1470 Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:
Post
by Alcoholic » Sun Jul 13, 2003 7:12 pm
if i spawn a vehicle that drives thru differently lighted areas, will it look ok?
jv_map
Site Admin
Posts: 6521 Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:
Post
by jv_map » Sun Jul 13, 2003 7:13 pm
Yeah because a vehicle uses the entity modulate lightgrid rather than model-specific vertex lighting.
Alcoholic
General
Posts: 1470 Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:
Post
by Alcoholic » Sun Jul 13, 2003 7:13 pm
yeah and -extragrid makes it look better right?
jv_map
Site Admin
Posts: 6521 Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:
Post
by jv_map » Sun Jul 13, 2003 7:14 pm
That's what it's supposed to do but I don't have a lot of confidence in mohlight
Alcoholic
General
Posts: 1470 Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:
Post
by Alcoholic » Sun Jul 13, 2003 7:16 pm
one of the docs said you should use it to help how the ai sees the enemy.
jv_map
Site Admin
Posts: 6521 Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:
Post
by jv_map » Sun Jul 13, 2003 7:20 pm
True but I think that's a little exagerated