
chrisk123999
Joined: Aug 10, 2008
=CE= Chris [Captain] [=]
|
Posted: May 15, 2009 09:15 PM
Msg. 1 of 24
Is it possible to make a script that works client side to stop you from using rasterizer_fog_atmosphere 0? My map has some fog that makes it so you can't see to far in front of you and would tempt people to turn off the fog.
|
|
|

Sabre
Joined: Dec 10, 2008
I joined RB in protecting Donut's avatar.
|
Posted: May 15, 2009 09:20 PM
Msg. 2 of 24
continuous_script rasterizer_fog_atmosphere 1
no?
|
|
|

chrisk123999
Joined: Aug 10, 2008
=CE= Chris [Captain] [=]
|
Posted: May 15, 2009 09:26 PM
Msg. 3 of 24
I don't actually know how to script. I just know how to get them into the map. Is that the script? Or how would it look in the hsc file?
|
|
|

Advancebo
Joined: Jan 14, 2008
|
Posted: May 15, 2009 09:36 PM
Msg. 4 of 24
(script continuous fog4ever (sleep_until (= (rasterizer_fog_atmosphere) 0)) (set (rasterizer_fog_atmosphere) 1) (sv_say "Sorry, no turning off the fog") ) I dont know if it will affect client side. Edited by Advancebo on May 15, 2009 at 09:36 PMCopy that into Notepad, then save as "fog4ever.hsc" into your "<map directory>\scripts" Edited by Advancebo on May 15, 2009 at 09:40 PM
|
|
|

Sabre
Joined: Dec 10, 2008
I joined RB in protecting Donut's avatar.
|
Posted: May 15, 2009 09:45 PM
Msg. 5 of 24
Quote: --- Original message by: Advancebo(script continuous fog4ever (sleep_until (= (rasterizer_fog_atmosphere) 0)) (set (rasterizer_fog_atmosphere) 1) (sv_say "Sorry, no turning off the fog") ) I dont know if it will affect client side. Edited by Advancebo on May 15, 2009 at 09:36 PMCopy that into Notepad, then save as "fog4ever.hsc" into your "\scripts"Edited by Advancebo on May 15, 2009 at 09:40 PM More like: data\levels\>mapname<\scripts or data\levels\test\>mapname<\scripts Then go into sapien and under File select "compile scripts" and you should have no problem. Edited by Sabre on May 15, 2009 at 09:46 PM
|
|
|

chrisk123999
Joined: Aug 10, 2008
=CE= Chris [Captain] [=]
|
Posted: May 15, 2009 09:45 PM
Msg. 6 of 24
I'm pretty sure the sv_say won't work when your not the host, but the rest I think should. Edit: I know how to get the script in the map. I just plain don't know how to make them. Edited by chrisk123999 on May 15, 2009 at 09:45 PM
|
|
|

Sabre
Joined: Dec 10, 2008
I joined RB in protecting Donut's avatar.
|
Posted: May 15, 2009 09:46 PM
Msg. 7 of 24
Quote: --- Original message by: chrisk123999
I'm pretty sure the sv_say won't work when your not the host, but the rest I think should. Edit: I know how to get the script in the map. I just plain don't know how to make them. Edited by chrisk123999 on May 15, 2009 at 09:45 PM Eh just in case.
|
|
|

chrisk123999
Joined: Aug 10, 2008
=CE= Chris [Captain] [=]
|
Posted: May 15, 2009 09:50 PM
Msg. 8 of 24
Debug:
05.15.09 20:49:40 [fog4ever line 2] this is not a valid function or script name.: rasterizer_fog_atmosphere) 0)) 05.15.09 20:49:40 recompiling scripts after scenarios were merged. 05.15.09 20:49:40 [fog4ever line 1] this left parenthesis is unmatched.: (script continuous fog4ever
|
|
|

Polamee
Joined: Feb 25, 2008
MP2SPMT's founder
|
Posted: May 15, 2009 10:01 PM
Msg. 9 of 24
Quote: --- Original message by: chrisk123999 Debug:
05.15.09 20:49:40 [fog4ever line 2] this is not a valid function or script name.: rasterizer_fog_atmosphere) 0)) 05.15.09 20:49:40 recompiling scripts after scenarios were merged. 05.15.09 20:49:40 [fog4ever line 1] this left parenthesis is unmatched.: (script continuous fog4ever Did you close all brackets?
|
|
|

Advancebo
Joined: Jan 14, 2008
|
Posted: May 15, 2009 10:37 PM
Msg. 10 of 24
(script continuous fog4ever (sleep_until (= (rasterizer_fog_atmosphere) 0)) (set (rasterizer_fog_atmosphere) 1) (sv_say "Sorry, no turning off the fog") ) )
Try this
|
|
|

chrisk123999
Joined: Aug 10, 2008
=CE= Chris [Captain] [=]
|
Posted: May 15, 2009 10:49 PM
Msg. 11 of 24
Same error. I don't think this line is working: (sleep_until (= (rasterizer_fog_atmosphere) 0)) Edited by chrisk123999 on May 15, 2009 at 10:52 PM
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: May 16, 2009 12:24 AM
Msg. 12 of 24
(script continuous fog4ever (if (= (rasterizer_fog_atmosphere) 0) (begin (set (rasterizer_fog_atmosphere) 1) (sv_say "Please enjoy the lovely fog") ) ) )
I find (if loops work better in continuous scripts.
|
|
|

chrisk123999
Joined: Aug 10, 2008
=CE= Chris [Captain] [=]
|
Posted: May 16, 2009 10:07 AM
Msg. 13 of 24
Still does not work, however I found one that does. (script continuous fog4ever (if (= rasterizer_fog_atmosphere 0) (begin (set rasterizer_fog_atmosphere 1) (sv_say "Please enjoy the lovely fog."))) )
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: May 16, 2009 10:16 AM
Msg. 14 of 24
That's the exact same as the one I posted up there...
|
|
|

chrisk123999
Joined: Aug 10, 2008
=CE= Chris [Captain] [=]
|
Posted: May 16, 2009 10:33 AM
Msg. 15 of 24
No, it's a little different.
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: May 16, 2009 10:34 AM
Msg. 16 of 24
No actually, it's the exact same. If you reformat it into the way I did it, you would see that it's the same word for word, parentheses by parentheses. But the important thing is that it works.
|
|
|

chrisk123999
Joined: Aug 10, 2008
=CE= Chris [Captain] [=]
|
Posted: May 16, 2009 11:34 AM
Msg. 17 of 24
No, it's (rasterizer_fog_atmosphere 0) instead of (rasterizer_fog_atmopshere) 0)
|
|
|

Advancebo
Joined: Jan 14, 2008
|
Posted: May 16, 2009 11:59 AM
Msg. 18 of 24
What ever you want, as long as it works.
|
|
|

chrisk123999
Joined: Aug 10, 2008
=CE= Chris [Captain] [=]
|
Posted: May 16, 2009 01:15 PM
Msg. 19 of 24
Did you even read the posts at all? This has nothing to do with dev trainer or deathless and infinite ammo.
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: May 16, 2009 01:29 PM
Msg. 20 of 24
Never mind. You were right. I really need to read things more carefully...
|
|
|

Me KS
Joined: Feb 2, 2008
Desire is Reality. Xfire: jetmaster23
|
Posted: May 16, 2009 01:32 PM
Msg. 21 of 24
Quote: --- Original message by: Gamma927 That's the exact same as the one I posted up there... Your script had parentheses around (rasterizer_fog_atmosphere), whereas the other script didn't. Putting parentheses around something treats it as a function, not putting parentheses treats it as a variable. Since "set" sets the value of variables, it must be a variable, so there can't be parentheses. That's all. Nothing big.
|
|
|

Headhunter09
Joined: May 6, 2008
This is the truth.
|
Posted: May 16, 2009 02:41 PM
Msg. 22 of 24
But they could just turn their graphics down. Decals or something like that.
|
|
|

chrisk123999
Joined: Aug 10, 2008
=CE= Chris [Captain] [=]
|
Posted: May 16, 2009 05:44 PM
Msg. 23 of 24
Decals does not effect fogging. The only way to cheat it would to run in safe mode or have a really bad computer. Or have a gfx card that does not support fogging I guess.
|
|
|

Donut
Joined: Sep 30, 2006
I swear I'm not actually dead
|
Posted: May 16, 2009 10:37 PM
Msg. 24 of 24
Quote: --- Original message by: commanderfarvel ORRR, Halo devtrainer double click....deathless, infinate ammo reading is good. its a skill you should have learned in kindergarden. hes looking for a script to always keep fog on, not a devtrainer, which is an external app (and i dont think it even has fog functions either)
|
|
|