Custom Mission based on Hitman activity

InnocentSam

Modding patch tester
I've been working on a custom mission which is loosely based on the Hitman series of games as well as the Hitman activity.

My original idea was the restaurant where you fight Jyunichi in the Kanto Connection mission, but the location hadn't enough variances of method for killing the target, so I started over and took it to the prison.

I worked on the code using TSS01 as a template as it's already in the prison, but I must've cocked something up along the way, because it stopped working and I couldn't pinpoint where I went wrong, so I decided to start the code over again and not use any mission as a template.

Now it boots, but crashes SR2 afterwards.

Attached is the started-over code, feel free to look at it and tell me what I'm doing wrong.

Onto the actual mission, the plan is to spawn the player at the dock, and place outfit-changers around the prison in appropriate places (i.e. a prisoner outfit in infirmary, a guard outfit in the guard room, maintenance outfit in the underground, etc) which influence behavior from NPCs. So if you wear the prisoner outfit, then you have access to prisoner areas but not guard areas, but if you wear the guard outfit, you'll have access to guard areas but if you go in the prisoner areas, they'll attempt to attack you.
This influences the difficulty of killing the target. So if you're in a prisoner outfit, you can easily walk up to him and beat the crap out of him (before the guards come to stop the fight) but you can't shoot him because you don't have any guns. Dressed in guard outfit, you can shoot him but the guards and prisoners will turn on you for randomly shooting a guy.

(personally, this is a way of teaching myself the SR2 Lua)
 

Attachments

  • hitman.rar
    8.3 KB · Views: 699

[V] IdolNinja

Volition Staff
Is that a gasping wheeze of life being breathed into sr2 modding? :p
 
  • Like
Reactions: F13

Fan of Saints

Modding patch tester
Hmmmm, interesting.

A bit offtopic but...

I personally really like the potential of the Hitman missions in SR2, and was a bit dissappointed when I realized that all you have to do is cruise around and wait for the crosshair icon to show up in your radar. I've managed to cap targets even during missions due to the icon.

I think that even without adding the whole costume mechanic, playing with the target location, missing description, and bodyguard settings could make for very interesting missions.

I'm thinking, even making the target belong to a gang so when you approach the bodyguards going hostile increases your notoriety with said gang.

Noob question: Is it possible to tinker with the conditions that spawn the target? The text says you sometimes need to wear certain clothes or do certain actions, but I've had targets spawn regardless. Having the spawn conditions be more strict would add a lot of depth to the missions.
 
Top