Home » MODDING HQ 1.13 » Flugente's Magika Workshop » New feature: Take prisoners, interrogate them
New feature: Take prisoners, interrogate them[message #312705] Mon, 03 December 2012 01:54 Go to previous message
Flugente

 
Messages:3542
Registered:April 2009
Location: Germany
As I am widely known as a downright pacifist, I of course took offence with JA2's kill-only policy. Due to this, I have implemented the option to capture enemies alive.

To capture an enemy alive, you handcuff him (new item #1625 [currently with placeholder pic]). Take handcuffs in your main hand, and click on a person. The handcuff cursor will indicate wether this is possible at all. You will be successful on unconscious enemies all the time. Other enemies will of course resist, in which case you might be unsucessful.
http://i49.tinypic.com/351enis.jpg

By handcuffing, an enemy will be effectively out of combat. He will no act in combat anymore (apart from standing up after explosions etc. - so to speak, he still has reflexes, but that's about it). Once the battle finishes (any remaining enemies are dying or handcuffed), a small dialogue will pop up:
http://i48.tinypic.com/24gtuud.jpg

By selecting 'Let them go', you will release the prisoners. A percentage of them will return to the queen's army, the rest will decide they had enough of this conflict.
If you select a sector, the prisoners will be sent to prison there (only sectors you control are shown). There are 5 prisons in Arulco: Tixa and Alma have the biggest, Chitzena, Cambria and San Mona have very small ones. Plus the not-so secret one near Meduna.
Regardless of the option you choose, the captured enemies will drop their equipemnt according to the ini rules prior to going to prison.

Every hour it is checked wether the prisoners in your prisons will revolt. This happens when
  • nobody guards this prison
  • the prison is overcrowded, and the prisoners vastly outnumber the guards. The higher the prisoner/guard ratio, the higher the chance of a riot. The 'guard value' depends on the number and quality of militia you have there, and the stats and traits of the mercs you have here. It is very wise to have someone at your prisons, you know...

A riot causes ALL of the prisoners to arm themselves in this sector. So if you keep 50 prisoners in Tixa and have a riot there, a riot will cause 50 enemies to spawn there. You propably don't want that Smile

Now, why would you even take prisoners, apart from being human-friendly? Your mercs can interrogate prisoners in these prisons by using the correct facility. Every hour that they interrogate, they 'process' prisoners of war, and the following efects can happen:
  • a prisoner can join your cause and become a member of your militia
  • a prisoner might give you some helpful information about the army - he might tell you about patrols you do not yet know about, een about their exact number or the direction they might be travelling
  • a prisoner's family (or is it really the queen?) might pay ransom for his release.
  • a released prisoner that does not join your militia might still rejoin the army.
http://i49.tinypic.com/2q246df.jpg
This symbol (a prison chair illuminated by one of those interrogation-type lamps) indicates Stephen means business.

Before you ask: Due to my overall peacefulness, it will not be possible to torture prisoners. (In the trunk, in other mods that might be different). Not true as of r5896 and GameDir r1613: The prisoners of war you have caught and transferred to your prisons will actually appear in the tactical map.

http://i50.tinypic.com/11qpye9.jpg
Our team has taken quite a few prisoners, which are now in their cells in the liberated Alma prisons.

For every prisoner we caught, one will appear on the map (provided there is still room in the civilian team there). They are divided on the prison cells. They will not go hostile, since they are totally defenseless, as you've already taken their gear earlier...

However, harming them has negative repercussions: Loyalty in he next town will slightly lowered, as it dawns to the local population that the so-called liberators of Arulco are as brutal as the army. Naturally, killing prisoners of war removes them from your 'prisoner pool'.

They also have fitting dialogue, where they mock you, plead for mercy, or offer something for their release.

How many prisoners a merc can interrogate every hour depends on his stats, experience, personality and even gear (waving a shotgun under their tongues might get some people to speak their mind more clearly.

Note that the AI will get alerted if you handcuff prisoners. So stealthily handcuffing an entire sector will not work easily Smile

This feature is in the trunk since r5709, note that GameDir r1568 is required due to the new mouse cursor symbols. Savegame version number has been raised, however, this is still savegame compatible.

What I still plan to do, but have not yet gotten around too, is to add boni to mercs with a prison guard (Bull, Bubba) or Law enforcement (Raider, Rudolf, ...) background. These boni would make them superior at being a guard or interrogator. This would be used to determine a merc's 'background', so other mercs get boni for being veterans, lawyers, arms dealers, drug addicts, gang members, athletes, crazy people etc.
The handcuffs currently have placeholder images, as I suck at pictures.
I still plan to allow the player to offer the enemy a surrender option, might add that in the future. -> r5714 has this

New Entries in ini's and xml's:

Ja2options.ini:
;******************************************************************************************************************************
; Prisoner system
;******************************************************************************************************************************

; can you capture enemy soldiers?
ALLOW_TAKE_PRISONERS = TRUE

; can you offer enemies a surrender option?
ENEMY_CAN_SURRENDER = TRUE

; display surrender values on asking for surrender. Helpful if you wonder why the enemy does no surrender at overhelming odds.
DISPLAY_SURRENDER_VALUES = TRUE

; the higher this value, the more superiority you need over the enemy for them to surrender. Range: 2.0 - 10.0
SURRENDER_MULTIPLIER = 5.0

; can you offer your own surrender to the enemy? This will not work while certain quests are active, or if the enemy already asked
; you to surrender, and you refused
PLAYER_CAN_ASK_TO_SURRENDER = TRUE

; chance that released soldiers join the army again
PRISONER_RETURN_TO_ARMY_CHANCE = 50

; chance that interrogated soldiers decide to join your cause (they will be turned into militia)
PRISONER_DEFECT_CHANCE = 25

; chance that interrogated soldiers can give info on enemy positions
PRISONER_INFO_BASECHANCE = 25

; chance that interrogated soldiers detect a specific patrol (a soldier can detect only one max)
PRISONER_INFO_DETECT_CHANCE = 5

; chance that interrogated soldiers can give info on enemy numbers
PRISONER_INFO_NUMBER_CHANCE = 30

; chance that interrogated soldiers can give info on enemy movement directions
PRISONER_INFO_DIRECTION_CHANCE = 40

; chance that interrogated soldiers get you ransom money
PRISONER_RANSOM_CHANCE = 25

PRISONER_INTERROGATION_POINTS_ADMIN     =  80
PRISONER_INTERROGATION_POINTS_REGULAR   = 100
PRISONER_INTERROGATION_POINTS_ELITE     = 140
PRISONER_INTERROGATION_POINTS_SPECIAL   = 250
  


APBPConstants.ini:
  ;***********************************************************************
;* The APs needed build a fortification structure                      *
;***********************************************************************
AP_FORTIFICATION = 180

;***********************************************************************
;* The APs needed to eat                                               *
;***********************************************************************
AP_EAT = 80

;***********************************************************************
;* The APs needed to clean a weapon                                               *
;***********************************************************************
AP_CLEANINGKIT = 80

;***********************************************************************
;* The APs needed to disguise                                               *
;***********************************************************************
AP_DISGUISE = 80

;***********************************************************************
;* The APs needed to handcuff someone
;***********************************************************************
AP_HANDCUFF = 50
  


Map/FacilityTypes.ml:
   is a new INT16 tag that determines how many prisoners are 'normal' for this prison. If inmate numbers are higher than this, riots can occur even if there are guards.
  


current ItemFlags for Items.xml:
  #define EMPTY_SANDBAG			0x00000001	//1
#define FULL_SANDBAG			0x00000002	//2
#define SHOVEL				0x00000004	//4			// a shovel is used for filling sandbags and other building-related tasks
#define CONCERTINA			0x00000008	//8

#define WATER_DRUM			0x00000010	//16		// water drums allow to refill canteens in the sector they are in
#define MEAT_BLOODCAT			0x00000020	//32		// retrieve this by gutting a bloodcat
#define COW_MEAT   			0x00000040	//64		// retrieve this by gutting a cow
#define BELT_FED			0x00000080	//128		// item can be fed externally

#define AMMO_BELT			0x00000100	//256		// this item can be used to feed externally
#define AMMO_BELT_VEST			0x00000200	//512		// this is a vest that can contain AMMO_BELT items in its medium slots
#define CAMO_REMOVAL			0x00000400	//1024		// item can be used to remove camo
#define CLEANING_KIT			0x00000800	//2048		// weapon cleaning kit

#define ATTENTION_ITEM			0x00001000	//4096		// this item is 'interesting' to the AI. Dumb soldiers may try to pick it up
#define GAROTTE				0x00002000	//8192		// this item is a garotte
#define COVERT 				0x00004000	//16384		// if LBE, any gun inside will be covert. On a gun, it will be covert in any LBE, even if the LBE does not have that tag itself
#define CORPSE				0x00008000	//32768		// a dead body

#define SKIN_BLOODCAT			0x00010000	//65536		// retrieve this by skinning (=decapitating) a bloodcat
#define NO_METAL_DETECTION              0x00020000	//131072	// a planted bomb with this flag can NOT be detected via metal detector. Use sparingly!
#define JUMP_GRENADE			0x00040000	//262144	// add +25 heigth to explosion, used for bouncing grenades and jumping mines
#define HANDCUFFS			0x00080000	//524288	// item can be used to capture soldiers

#define TASER				0x00100000	//1048576	// item is a taser, melee hits with this will drain breath (if batteries are supplied)


current ammoflags for AmmoTypes.xml:
#define AMMO_NEUROTOXIN			0x00000001	//1			// this ammo adds the cyanide drug effect to its target, killing it in a few turns
#define AMMO_BLIND			0x00000002	//2			// this ammo will blind if it hits the head


SectorNames.xml:
What is propably interesting for modders is that you can set up the room numbers via xml. You can specify up to 16 prison room numbers in Map/SectorNames.xml:

    I13
    Alma
    Alma
    Alma
    Alma
    1
    100
    2
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
   

These are the exact room numbers from the map editor. Prisoners will appear in any sector with a prison facility and specified prison rooms if prisoners are present.

Update: New items include working stun guns, which make capturing enemies alive a bit easier.

Update 2: As of r5740 and GameDir r1576, enemies can also be bound via 'stacks of binders'. Its basically a kit that degrades every time you capture an enemy with it. Pro: Lasts for more than one enemy. Con: You do not gt it back, contrary to handcuffs.

Also, a FacilityType assignment performance tag now influences the performance of your interrogators in that sector. By this you can build really (in-)efficient prisons.

Update 3: r5888 gives us a better dialogue, from where we can choose the exact prison.

Update 4: r5896 and GameDir r1613 give us actual prisoners in the map, placed in the correct prison cells.

Update 5: r6219 and GameDir r1703 give us a prisoner-type differentiation. There are admin/regular/elite prisoners. Advanced prisoners are harder to interrogate, but can become advanced militia, should they join you.


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon7.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: New Feature: drag people & corpses
Next Topic: Ongoing redesign: start options/ini/ingame options
Goto Forum:
  


Current Time: Sat Aug 15 04:36:43 EEST 2020

Total time taken to generate the page: 0.01804 seconds