[Snippet] Sliding Doors

Ninja FTW

Well-Known Member
Joined
Aug 11, 2017
Messages
61
Likes
0
Points
6
Location
Saturn
#1
Code:
{$CLEO .cs}

thread 'SlidoorL'

0000: NOP
:SR_start

wait 0

if

Actor.DrivingVehicleType($PLAYER_ACTOR, #CABBIE)

jf @SR_start

03C0: [email protected] = actor $PLAYER_ACTOR car
095F: get_car [email protected] door 4 angle_to [email protected]

wait 0

if

   not [email protected] == 0.0

else_jump @SR_start
:SR_open_enter1

095F: get_car [email protected] door 4 angle_to [email protected]

[email protected] *= 10

0085: [email protected] = [email protected] // (int)

wait 0

if

   [email protected] > 8 

else_jump @SR_open_enter1

073C: car [email protected] damage_component 4
:SR_open_enter2

095F: get_car [email protected] door 4 angle_to [email protected]

wait 0

if

   0.8 > [email protected]

else_jump @SR_open_enter2
:SR_open_enter3

095F: get_car [email protected] door 4 angle_to [email protected]

wait 0

if

   [email protected] == 0.0

else_jump @SR_open_enter3

068A: set_car [email protected] repair_componentA 4

jump @SR_start
0A93: end_custom_thread
Code:
{$CLEO .cs}

thread 'SlidoorR'

0000: NOP
:SR_start

wait 0

if

Actor.DrivingVehicleType($PLAYER_ACTOR, #CABBIE)

jf @SR_start

03C0: [email protected] = actor $PLAYER_ACTOR car
095F: get_car [email protected] door 5 angle_to [email protected]

wait 0

if

   not [email protected] == 0.0

else_jump @SR_start
:SR_open_enter1

095F: get_car [email protected] door 5 angle_to [email protected]

[email protected] *= 10

0085: [email protected] = [email protected] // (int)

wait 0

if

   [email protected] > 8

else_jump @SR_open_enter1

073C: car [email protected] damage_component 5
:SR_open_enter2

095F: get_car [email protected] door 5 angle_to [email protected]

wait 0

if

   0.8 > [email protected]

else_jump @SR_open_enter2
:SR_open_enter3

095F: get_car [email protected] door 5 angle_to [email protected]

wait 0

if

   [email protected] == 0.0

else_jump @SR_open_enter3

068A: set_car [email protected] repair_componentA 5

jump @SR_start
0A93: end_custom_thread
https://s26.postimg.org/6olbwrx11/Slidoor_ZM2a.jpg
https://s26.postimg.org/cqsyn9lh1/Slidoor_ZM2b.jpg
https://s26.postimg.org/4mpfw9ofp/Slidoor_ZM2c.jpg
 
OP
OP
Ninja FTW

Ninja FTW

Well-Known Member
Joined
Aug 11, 2017
Messages
61
Likes
0
Points
6
Location
Saturn
#3
It's very cool feature. No car animation changes need. Just settle them by changing angles of specific car.
 
Top