lainlives Posted August 6, 2007 Share Posted August 6, 2007 some time ago i found a mod that when you pressed the handbrake the game goes into slowmo how could i recreate this. Link to comment Share on other sites More sharing options...
lainlives Posted August 6, 2007 Author Share Posted August 6, 2007 (edited) never mind i found it :SLOMOwait 1000 thread 'SLOMO' :SLOMO_16wait 0 if 00E1: player 0 pressed_key 6 else_jump @SLOMO_16 015D: set_gamespeed 0.3 :SLOMO_44wait 0 if 80E1: not player 0 pressed_key 6 else_jump @SLOMO_44 015D: set_gamespeed 1.0 jump @SLOMO_16 but i cant seem to get it in the .scm file without the game crashing Edited August 6, 2007 by lainlives Link to comment Share on other sites More sharing options...
ZAZ Posted August 6, 2007 Share Posted August 6, 2007 Speedbraker is a feature in the S_Acid mod, klick on my sig. :slow_003A4: name_thread 'SLW'0004: $sl1 = 0 ;; integer values:slow_10001: wait 0 ms00D6: if 00256: player $PLAYER_CHAR defined004D: jump_if_false ££slow_100D6: if 000DF: actor $PLAYER_ACTOR driving004D: jump_if_false ££slow_200D6: if 284C8: NOT actor $PLAYER_ACTOR driving_flying_vehicle00E1: key_pressed 0 600E1: key_pressed 0 14004D: jump_if_false ££slow_10002: jump ££slow_3:slow_200D6: if 00038: $sl1 == 1 ;; integer values004D: jump_if_false ££slow_1015D: set_gamespeed 1.00004: $sl1 = 0 ;; integer values0002: jump ££slow_1:slow_300D6: if 10038: $sl1 == 0 ;; integer values09E7: $PLAYER_CHAR;;not_frozen (if)004D: jump_if_false ££slow_4015D: set_gamespeed .30004: $sl1 = 1 ;; integer values0001: wait 300 ms0002: jump ££slow_1:slow_400D6: if 00038: $sl1 == 1 ;; integer values004D: jump_if_false ££slow_1015D: set_gamespeed 1.00004: $sl1 = 0 ;; integer values0001: wait 1000 ms0002: jump ££slow_1 Press handbrake and backwards while driving CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
lainlives Posted August 6, 2007 Author Share Posted August 6, 2007 (edited) Speedbraker is a feature in the S_Acid mod, klick on my sig. 2 questions 1: can i use this in my mod (wanna ask its your work) 2: if yes do you mind if i alter it edit: uh oh i cant decompile the main.scm (orignal) it keeps missing different things (sanny edit 3) Edited August 6, 2007 by lainlives Link to comment Share on other sites More sharing options...
Wesser Posted August 7, 2007 Share Posted August 7, 2007 (edited) never mind i found it :SLOMOwait 1000 thread 'SLOMO' :SLOMO_16wait 0 if 00E1: player 0 pressed_key 6 else_jump @SLOMO_16 015D: set_gamespeed 0.3 :SLOMO_44wait 0 if 80E1: not player 0 pressed_key 6 else_jump @SLOMO_44 015D: set_gamespeed 1.0 jump @SLOMO_16 but i cant seem to get it in the .scm file without the game crashing Hi, @lainlives, the name of the opcode 80E1 is wrong (player -> pressed_pad). However, try with this thread. Press the "secondary fire"'s key while driving. create_thread @SLOW ................:SLOWthread 'SLOW'[email protected] = 0 // L = INT :SLOW_16wait 0 if and Player.Defined($PLAYER_CHAR) Actor.Driving($PLAYER_ACTOR)jf @SLOW_65 03C0: get_actor $PLAYER_ACTOR vehicle_handle_to [email protected] //class B :SLOW_29wait 0 if and Player.Defined($PLAYER_CHAR) not Car.Wrecked([email protected])jf @SLOW_65 if Actor.InCar($PLAYER_ACTOR, [email protected])jf @SLOW_65 if and [email protected] > 700 // L > INT 00E1: is_button_pressed_pad 0 button 4 jf @SLOW_16 [email protected] = 0 // L = INT if [email protected] == 0 // L == INT jf @SLOW_44 015D: set_gamespeed 0.3 [email protected] = 1 // L = INT jump @SLOW_16 :SLOW_44015D: set_gamespeed 1.0 [email protected] = 0 // L = INT jump @SLOW_16 :SLOW_65Car.RemoveReferences([email protected])015D: set_gamespeed 1.0 [email protected] = 0 // L = INT jump @SLOW_16 Bye Bye -Wesser- Edited August 7, 2007 by Wesser 012 345 678 9A BCD EFG HIJK LMN OPQR STUV WX YZ Link to comment Share on other sites More sharing options...
Bigun Posted August 7, 2007 Share Posted August 7, 2007 lainlives and Wesser, you need to get an 'if player defined' check done correctly; before addressing the player. Otherwise, it can definitely crash. Link to comment Share on other sites More sharing options...
lainlives Posted August 7, 2007 Author Share Posted August 7, 2007 (edited) can someone jsut give me a precompiled scm with slomo set to trip skip (11) i dont have the original main.scm or script.img and i cant reinstall i scratched my disc towrd the edge so it will exit installation halfway through Edited August 7, 2007 by lainlives Link to comment Share on other sites More sharing options...
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