Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This file was decompiled using sascm.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
- {$CLEO .cs}
- //-------------MAIN---------------
- thread "BAG"
- 0662: NOP "XZYTRO SAYS HI"
- 0662: NOP "FROM UGBASE.EU"
- :MAIN
- wait 0
- if and
- 0256: player $PLAYER_CHAR defined
- 056D: actor $PLAYER_ACTOR defined
- 84C8: not actor $PLAYER_ACTOR driving_flying_vehicle
- 80DF: not actor $PLAYER_ACTOR driving
- 89DE: not actor $PLAYER_ACTOR entering_car
- 0AB0: key_pressed 2
- then
- jump @LOAD_BAG_MODEL
- else
- 0ACD: show_text_highpriority "~R~DEBUG : ~W~driving/entering/not pressing aim" time 1500
- wait 1500
- jump @MAIN
- end
- :LOAD_BAG_MODEL
- wait 0
- Model.Load(3026)
- if
- Model.Available(3026)
- else_jump @LOAD_BAG_MODEL
- 0ACD: show_text_highpriority "~R~DEBUG : ~W~MODEL LOADED" time 1500
- wait 1500
- :ATTACH_THE_BAG
- wait 0
- 0107: $bag = create_object 3026 at 0.0 0.0 0.0
- //069B: attach_object $bag to_actor $PLAYER_ACTOR with_offset 0.0 0.0 0.0 rotation 0.0 0.0 0.0
- 070A: AS_actor $PLAYER_ACTOR attach_to_object $bag offset -0.13 -0.05 0.0 on_bone 1 16 perform_animation "NULL" IFP_file "NULL" time -1
- 0382: set_object $bag collision_detection 0
- 0ACD: show_text_highpriority "~R~DEBUG : ~W~BAG ATTACHED" time 1500
- wait 1500
- :DEACTIVATION_CHECK
- wait 0
- if or
- 0118: actor $PLAYER_ACTOR dead
- 0449: actor $PLAYER_ACTOR in_a_car
- 09DE: actor $PLAYER_ACTOR entering_car
- 0AB0: key_pressed 88
- then
- 0682: detach_object $bag 0.0 0.0 0.0 collision_detection 0
- wait 500
- 0249: release_model 3026
- Object.Destroy($bag)
- 0ACD: show_text_highpriority "~R~DEBUG : ~W~Object removed" time 1500
- wait 1500
- jump @RESPAWN_THE_BAG
- else
- 0ACD: show_text_highpriority "~R~DEBUG : ~W~alive/onfoot/didn't type X" time 1500
- wait 1500
- jump @DEACTIVATION_CHECK
- end
- :RESPAWN_THE_BAG
- wait 0
- if and
- 0256: player $PLAYER_CHAR defined
- 056D: actor $PLAYER_ACTOR defined
- 84C8: not actor $PLAYER_ACTOR driving_flying_vehicle
- 80DF: not actor $PLAYER_ACTOR driving
- 89DE: not actor $PLAYER_ACTOR entering_car
- then
- if
- 0AB0: key_pressed 2
- then
- 0ACD: show_text_highpriority "~R~DEBUG : ~W~NOT DRIVING AND AIMING, SO SPAWNING THE BAG" time 1500
- wait 1500
- jump @ATTACH_THE_BAG
- else
- 0ACD: show_text_highpriority "~R~DEBUG : ~W~DID NOT PRESS AIM" time 1500
- wait 1500
- jump @RESPAWN_THE_BAG
- end
- else
- 0ACD: show_text_highpriority "~R~DEBUG : ~W~driving or entering car" time 1500
- wait 1500
- jump @RESPAWN_THE_BAG
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement