Langerd Posted July 20, 2017 Posted July 20, 2017 Is there any chance to change the weather with the script? Or clear , freeze?
Ramikad Posted July 20, 2017 Posted July 20, 2017 As far as I know there's just an ugly hack to do it: //(BHVD) set ( /*@SET_TYPES*/ "SET_VIDEO_PLAY", "yadda; cl_noprint 1; helpusobi 1; r_we rain; helpusobi 0; cl_noprint 0" ); It is ugly, but it's the only way to dynamically change weather without code modifications. redsaurus, therfiles and Smoo like this
therfiles Posted July 20, 2017 Posted July 20, 2017 As far as I know there's just an ugly hack to do it: //(BHVD) set ( /*@SET_TYPES*/ "SET_VIDEO_PLAY", "yadda; cl_noprint 1; helpusobi 1; r_we rain; helpusobi 0; cl_noprint 0" ); It is ugly, but it's the only way to dynamically change weather without code modifications. Woah woah...@@Ramikad are you saying that the SET_VIDEO_PLAY key lets you just input console commands, change CVARS, etc?
Langerd Posted July 20, 2017 Author Posted July 20, 2017 As far as I know there's just an ugly hack to do it: //(BHVD) set ( /*@SET_TYPES*/ "SET_VIDEO_PLAY", "yadda; cl_noprint 1; helpusobi 1; r_we rain; helpusobi 0; cl_noprint 0" ); It is ugly, but it's the only way to dynamically change weather without code modifications.Thanks! (This works with all cheat codes ? didnt know that OoO) Answer me.. Because You are One Mysterious Character here on Hub for me - Your posts are ALWAYS helpful and great to hear! therfiles likes this
Ramikad Posted July 20, 2017 Posted July 20, 2017 Yep, as far as I know you can just input any and all console command like that. Found out this solution a long time ago in the comment section of a tutorial here on the Hub, while looking for a way to change weather. I think this is theoretically possible by exploiting a bug in SET_VIDEO_PLAY which allows you to run arbitrary console commands. This is how it should work: //Generated by BehavEd rem ( "Clear the weather" ); set ( /*@SET_TYPES*/ "SET_VIDEO_PLAY", ";r_we clear" );SET_VIDEO_PLAY is supposed to start an in-game cinematic, and it does that by running this in the console: inGameCinematic <your text here>The semicolon in my script above means what actually happens is that this will run: inGameCinematic ;r_we clearThis means that it doesn't actually run any in-game cinematic, and instead it runs the r_we clear command to clear the weather. Theoretically! Give it a whirl Smoo, therfiles and Noodle like this
Noodle Posted July 20, 2017 Posted July 20, 2017 Holy crap, how did this knowledge remain hidden for so long! therfiles likes this
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now