Playing As Your Boss In Zombie Apocalypse

I've been thinking about this one for a while
and I think I've figured out how it can be done, but I'm not sure how to write the code needed to accomplish it.

Last night I remembered that Idolninja added "morph codes" to GOTR that are accessed through the phone interface.

Now all a morph actually does is switch from one npc to another, so if we could use those codes inside the Zombie Apocalypse activity we could play as our boss since one of the codes is a restore npc code. (#75 I think.)

The only problem is that you can't use the phone during that activity, but what if you could add the "Morphing" option to SandboxPlusPlus?

This is where I've hit a stumbling block, I am not a coder and I know less than nothing about lua or scripting.

While I can figure out how to change values in a lua file I can't script the code to make those values function properly.

So I thought I'd put this idea out and see what someone else might think about it.

Thanks
 
If it's possible to unpack the patch.vpp_pc to reveal the individual .lua /xtbl files it might be easier to take a look at how morphing was implemented within the mod (I don't remember the way, if there is one)
 
The GOTR morph codes are just the unused morph cheat leftover in the game, Juiced implements it under the "play_as meshname", and they do get populated under Bling Menu, either ways it doesn't work under Zombie Uprising, there's a leftover character console command that might (it crashes the game in zombie) but Tervel isn't using that and instead is using the cheat functions
 
Last edited:
Thank you for the answer Clipper. I appreciate you taking the time to do so.
Turns out you can just skip a section of initialization in one of zombie_level_instance's functions and you'll be the player
1744547961878.png
 
nice!! would be great to know which one it is so this automatically turns into a guide thread (even if simple instructions)
 
nice!! would be great to know which one it is so this automatically turns into a guide thread (even if simple instructions)
All activities/diversions are programmed in the game, not with LUA, some stuff might be within xtbls/LUAs to quickly modify stuff but the main logic is programmed in the game,
either ways with Cheat Engine you can change the instruction at memory address: 0x005B9AC3 from a je/jz to a jmp and it'll skip over setting the player's models
 
wish there was a 🔥 react for posts like yours lol!

since Cheat engine is not commonly used to mod the this series I'll paraphrase your instructions into a full tutorial, incase anyone needs it.
0. Download and install Cheat Engine
1. Boot up game to main menu and open Cheat Engine, click the top-left Process open button and select sr2.exe
2. Go back to CE, find Memory View button and click it
3. Ctrl + G (or right click) to Goto address and paste 0x005B9AC3, press OK
4. Double click the highlighted je/jz opcode and change only je/jz part to jmp (leave the space & address beside it intact) and press OK
5. If you did it correctly try opening Zombie Uprising and hopefully the intended effect will happen (if you did it wrong, probably your game will crash)

6. If you verify this to be working, right click the opcode you just modified and choose "Add to code list". This makes it appear in Advanced Options bottom left of main CE window, so you can save the .ct file and find this code again easier when you want to play Zombie Uprising with your player character.

Please feel free to point out inaccuracies, as I don't have the game installed rn to actually try this (I am however a bit familiar with using CE).
 
Back
Top