Alien Shooter
curiousRay Jan 22, 2023 @ 2:34am
Hacking in SURVIVAL MODE
Tried to modify game logic files of SURVIVAL MODE, and it seems working XD.

1. Go to the game installation location [mine is installed under E:\]
E:\SteamLibrary\steamapps\common\Alien Shooter\Maps

2. Edit the file "common_survive.lgc".
find the code"PlayerItem[7]=0;", add lines under it if you want to:
This is to add weapon gun No.9, with ammo of 999999. The 269 is the gun's ID.
Action(Flagman(0),ACT_ADD_ITEM,269,0); Action(Flagman(0),ACT_ADD_AMMO,999999,9);

This is to make you invulnerable, and won't receive any harm.
Action(Flagman(0), ACT_SET_INVULNERABLE, 1);
However, if you pick up the item[looks like a ball], and it's effect disappeared after a while, you could still suffer harm. In this case, edit the file "ITEMS.lgc".
change this
F203_15(int unit) { PlayerInvulnerableSprite = 0; Action(Flagman(0), ACT_SET_INVULNERABLE, 0); }
to
F203_15(int unit) { PlayerInvulnerableSprite = 0; Action(Flagman(0), ACT_SET_INVULNERABLE, 1); }
Last edited by curiousRay; Jan 22, 2023 @ 2:42am