Here is how are all those 'magical' Godmodes made:
Shitty one:
Better one:
This will give you protection for 300 miliseconds, for 300 miliseconds won't ONLY IF YOU ARE NOT MOVING - your HP if you take damage will go back up.
I promised that after making Smart Godmode PREMIUM I would release the PUBLIC's source, and so I kept my promise.
If you want to implement only-when-moving Godmode into anything, just add a condition
Shitty one:
Code:
:LOOP
wait 0
if
0ADC: test_cheat "SHH" // Key Enabled / Disabled
else_jump @MAIN
if
31@ == 0
then
31@ = 1
018C: play_sound 1083 at 0.0 0.0 0.0
0ACD: show_text_highpriority "ACTIVATED" time 1337
else
31@ = 0
018C: play_sound 1084 at 0.0 0.0 0.0
0ACD: show_text_highpriority "DEACTIVATED" time 1337
end
:MAIN
wait 0
if
31@ == 1 // on
jf @LOOP
if
not Actor.Stopped($PLAYER_ACTOR)
jf @LOOP
21@ = Actor.Health($PLAYER_ACTOR)
wait 300
22@ = Actor.Health($PLAYER_ACTOR)
if
0029: 21@ >= 22@
jf @LOOP
Actor.Health($PLAYER_ACTOR) = 21@
0ACD: show_text_highpriority "PROTECTED" time 300
jump @LOOP
Better one:
Code:
:LOOP
wait 0
if
0ADC: test_cheat "Opcode69" // Key Enabled / Disabled
else_jump @MAIN
if
31@ == 0
then
31@ = 1
018C: play_sound 1083 at 0.0 0.0 0.0
0ACD: show_text_highpriority "420 ACTIVATED" time 1337
else
31@ = 0
018C: play_sound 1084 at 0.0 0.0 0.0
0ACD: show_text_highpriority "420 DEACTIVATED" time 1337
end
:MAIN
wait 0
if
31@ == 1 // on
jf @LOOP
if
not Actor.Stopped($PLAYER_ACTOR)
jf @LOOP
02AB: set_actor $PLAYER_ACTOR immunities BP 1 FP 1 EP 1 CP 1 MP 1
0ACD: show_text_highpriority "SPRGFLD HAS CONDOM" time 300
wait 300
02AB: set_actor $PLAYER_ACTOR immunities BP 0 FP 0 EP 0 CP 0 MP 0
0ACD: show_text_highpriority "SPRGFLD HAVING KIDS" time 300
jump @LOOP
This will give you protection for 300 miliseconds, for 300 miliseconds won't ONLY IF YOU ARE NOT MOVING - your HP if you take damage will go back up.
I promised that after making Smart Godmode PREMIUM I would release the PUBLIC's source, and so I kept my promise.
If you want to implement only-when-moving Godmode into anything, just add a condition
Code:
IF
not Actor.Stopped($PLAYER_ACTOR)