SRTT Allow type of NPC to use car paths.

Hello Volition,

I just came up with this. Would it be possible to allow NPCs to be spawned on car paths?

I was thinking of allowing zombies to use car paths, so they don't only spawn on the sidewalks, like they do now.

And also, is it possible to add a certain percent of change to the zombie cheat to make the zombies that are on fire and explode spawn as well?

Thanks
 
I'm pretty sure the code looks for pedestrian splines to spawn peds, which are along the sidewalk. The only way I see this happening would be to hack the zone format and insert more splines(if there is even memory for it).

As for changing the zombie cheat to spawn different types of zombies, that seems like something that potentially could be exposed to lua...it might be really hard or it could be simple, I don't even know where I would begin on that one yet. :)
 
I'm pretty sure the code looks for pedestrian splines to spawn peds, which are along the sidewalk. The only way I see this happening would be to hack the zone format and insert more splines(if there is even memory for it).

As for changing the zombie cheat to spawn different types of zombies, that seems like something that potentially could be exposed to lua...it might be really hard or it could be simple, I don't even know where I would begin on that one yet. :)

Adding more splines? But wouldn't that make normal peds spawn on there as well? Or is there a flag/lua script which allows only a certain type of ped to spawn on the spline?

I hope adding the exploding is going to be possible some day, more variety in enemies means more fun :D

I'm simply going to wait for the SDK to be released, that most likely remove a lot of restrictions we have right now.
 
I'm pretty sure the code looks for pedestrian splines to spawn peds, which are along the sidewalk. The only way I see this happening would be to hack the zone format and insert more splines(if there is even memory for it).

As for changing the zombie cheat to spawn different types of zombies, that seems like something that potentially could be exposed to lua...it might be really hard or it could be simple, I don't even know where I would begin on that one yet. :)
If I'm allowed to ask..
Why exposing all the "complicated" Function's to LUA and not allowing a little insight of the Structures / Classes the game uses so ppl can do these things with easy assembly work (Referring to my Question)?
 
It isn't that exposing it to lua is complication as much as I don't even know where the zombie spawning code exists since I didn't touch anything like that in the engine during the game. It could be as simple as finding the spawn_zombie and spawn_exploding_on_fire_zombie function and exposing it to lua, but it might be something driven from spawn profile table files and hoods. It could be hard coded that in a mission every zombie that spawns has a change to be on fire or explode. I have to go track all that down before I can even begin to expose this to lua or to you via some dump of the class structure.
 
It isn't that exposing it to lua is complication as much as I don't even know where the zombie spawning code exists since I didn't touch anything like that in the engine during the game. It could be as simple as finding the spawn_zombie and spawn_exploding_on_fire_zombie function and exposing it to lua, but it might be something driven from spawn profile table files and hoods. It could be hard coded that in a mission every zombie that spawns has a change to be on fire or explode. I have to go track all that down before I can even begin to expose this to lua or to you via some dump of the class structure.

The exploding zombie chance isn't hard coded, it is editable, but only works during certain missions (I believe only Whored mode). We should be able to allow to activate this through lua I believe.

I remember this thread I created some time ago and my mod request was handled succesfully thanks to the Volition modding support we are getting now.

https://www.saintsrowmods.com/forum/threads/npcs-shoot-out-of-car.2664/page-2

This behaviour (cops shooting out of cars) was also restricted to the activities only but with some lua scripting this could be implemented in free roam as well.

The mod also has a function so we can set at which notoriety level the cops start shooting out of their car, so I guess it must be possible to also set a certain function to activate once a certain cheat activated, the zombie cheat in this case.
 
Back
Top