what causes this....

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
7th Es Cyborg
First Lieutenant
Posts: 189
Joined: Fri Dec 13, 2002 5:00 pm
Location: PA
Contact:

what causes this....

Post by 7th Es Cyborg »

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

Image

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 »

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.
Image
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

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 »

Yeah because a vehicle uses the entity modulate lightgrid rather than model-specific vertex lighting.
Image
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

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 »

That's what it's supposed to do but I don't have a lot of confidence in mohlight :roll:
Image
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

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 »

True but I think that's a little exagerated :wink:
Image
Post Reply