Датчик скорости CJ
:CJ_spa
0001: wait 250 ms
00D6: if and
80DF: NOT actor $PLAYER_ACTOR driving
0256: player $PLAYER_CHAR defined
004D: jump_if_false @CJ_spa_3
:CJ_spa_2
0001: wait 0 ms
00D6: if and
80DF: NOT actor $PLAYER_ACTOR driving
0256: player $PLAYER_CHAR defined
004D: jump_if_false @CJ_spa_3
06AC: $CJ_speed_p = actor $PLAYER_ACTOR movement_speed
04DD: $CJ_arm = actor $PLAYER_ACTOR armour
0011: $CJ_speed_p *= 1.0 //floating-point values
008C: $CJ_speed_p = float_to_integer $CJ_speed_p
04F7: status_text $CJ_arm 0 line 1 "ARMOR"
04F7: status_text $CJ_speed_p 0 line 2 "SPEEDP"
0002: jump @CJ_spa_2
:CJ_spa_3
0001: wait 250 ms
0151: remove_status_text $CJ_arm
0151: remove_status_text $CJ_speed_p
01C2: remove_references_to_actor $PLAYER_ACTOR // Like turning an actor into a random pedestrian
0002: jump @CJ_spa
BIGLION
427 Прочтений • [Датчик скорости CJ] [13.05.2012] [Комментариев: 0]