Weapon leaning animation
Enviado: 24 Dez 2019, 07:58
Many tactical shooter games have leaning animations. Is it possible to implement this to GTA-SA correctly? I made a basic script that changes shooting animations to add leaning animation but it has many problems like automatic guns shooting too fast, camera doesn't move with the animation, player can only lean to one side and the animation doesn't follow the camera when aiming upwards or downwards.
Here's the video:
Code:
Download
Equip M4 and while aiming press e to lean.
Animation is from mcastle
Here's the video:
Code:
SpoilerAbrir
Código: Selecionar tudo
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
1@ = 0
:ENG_1
wait 0
if and
Player.Defined($PLAYER_CHAR)
02D8: actor $player_actor current_weapon == 31
00E1: player 0 pressed_key 6
then
if 0AB0: key_pressed 69
then
if 1@ == 0
then 1@ = 1
08F8: display_stat_update_box 0
062A: change_float_stat 78 to 200.0
08F8: display_stat_update_box 1
else 1@ = 0
08F8: display_stat_update_box 0
062A: change_float_stat 78 to 999.0
08F8: display_stat_update_box 1
end
while 0AB0: key_pressed 69
wait 0
end
else_jump @ENG_1
end
else_jump @ENG_1
end
jump @ENG_1Download
Equip M4 and while aiming press e to lean.
Animation is from mcastle