Zombie Panic! Source

Zombie Panic! Source

View Stats:
Is it possible to play all the objective maps in gmod solo?
If I tamper around with lua a bit, is it possible to replicate/port the functionalities of the game-specific entities ZPS uses to handle objectives, text screens, events, etc?
< >
Showing 1-3 of 3 comments
Pretty much, yeah. All you need is to port code from Angelscript files used by the respective maps to Lua and adapt it to whatever shared engine functions there are to restore basic functionality, such as pressing buttons, displaying game_text messages, sending ent_fire inputs when hooked events are fired, etc.

Some ZPS specific things might require some workarounds to get around missing entities, such as item_deliver and trigger_itemreceiver, which are used in some objective maps.
Originally posted by Reborn:
Pretty much, yeah. All you need is to port code from Angelscript files used by the respective maps to Lua and adapt it to whatever shared engine functions there are to restore basic functionality, such as pressing buttons, displaying game_text messages, sending ent_fire inputs when hooked events are fired, etc.

Some ZPS specific things might require some workarounds to get around missing entities, such as item_deliver and trigger_itemreceiver, which are used in some objective maps.
I assume I have to decompile each map individually for that?

I was thinking of making a lua that will be general-case to catch all entity names with a map init hook, then convert each of them into a respective shared engine entities and paste over all key/value content respectively.
Originally posted by Auditormadness9:
I assume I have to decompile each map individually for that?
The scripts for each map are stored in the game's folder as is, so you can just grab .as files (except for pre-compiled .asc files) and open them in notepad++ or whatever text editor you prefer.

Regarding the decompiling of the maps. It's up to you how you would approach the porting. In many cases you would need to replace filter_activator_team entity, which is widely used in many ZPS maps (especially many old custom and official maps that have all their logic done in Hammer). At least decompiling and studying the logic in Hammer would give you a better idea how objectives and other map logic is laid out.
< >
Showing 1-3 of 3 comments
Per page: 1530 50