smoke won't work


(Doc_A) #1

Hmm can’t get basic black smoke to work… like it does on the tank in Goldrush.

Entity Parameters:
classname: Target_smoke
targetname: bridge_smoke
origin XYZ (correct)
smokeon is selected
black color selected

script has “setstate bridge_smoke default” in the spawn and a few other
places like a trigger setup.

Any ideas?


(chavo_one) #2

Give the target_smoke one more key/value pair:

“scriptname” “bridge_smoke”


(Doc_A) #3

does it actually need to point somewhere real or is this merely a placeholder?

Thanks alot.


(chavo_one) #4

If you have “setstate bridge_smoke default” in your script, then your target_smoke has to have a scriptname “bridge_smoke”.


(Thej) #5

where do u want the smoke, cause if u just want smoke from a fire, put the target_smoke entity above the fire and check the smoke on button and the color(black/white)

Do u have the smoke setstate set to default?

Or could u post a bit of the script in here


(Doc_A) #6

At first I tried using only the parameters in the target_smoke object but that didn’t work. Setting smokeon and black wasn’t enough to cause it to function as mentioned in my first post.

Chavo_one was correct, as there was a small script in goldrush pertaining to the smoke (called tank_smoke).

I still haven’t got it working after setting smokeon and using the script, but it’s just a matter of time before I figure it out.

Doc


(Erik-Ftn) #7

Just trigger the target_smoke to toggle it on/off.

from scripting with alertentity <targetname>
(you might want to use a target_relay between script and smoke entity)

from other entities the normal way.



(chavo_one) #8

Why would you want to use the old RtCW way of alert_entity->target_relay->target_smoke, when you can use the new and much simpler way of setstate->target_smoke?!


(Erik-Ftn) #9

You don’t have to use target_relay, using alertentity directly on the target_smoke works fine.

Hence
If you want to toggle the smoke from its present state -> use alertentity or an entity triggering the target_smoke.

If you want to set the smoke to a known state -> use setstate.

Toggling with setstate or setting a known state with alertentity requires you to keep track of the present state with variables.

Erik

http://user.tninet.se/~fzo823r/smoke.htm

btw, I just made a smoke reference page with pics of the effect of different keyvalues etc. Do you know about changing the angle while in game? (No5) I can’t get it to work. :expressionless: