Jump to content
Sign in to follow this  
Shinji

making the player (very)Hard to kill ...

Recommended Posts

Is it possible to make the player Hard to kill ... I know about the ability to have extra armor in the option ... but I want more Rambo like Unit.

Please help me ...

Share this post


Link to post
Share on other sites

sooooooooooo shinji....you want to feel......in vin si bulllll. sorry i don't know how.

Share this post


Link to post
Share on other sites

LOL! Well yeah ... it's something I have in mind.

Anyone That can help please ...

Share this post


Link to post
Share on other sites

That only works in a mission you create yourself though, I think he's asking to have an "Unlimited health" option that he can switch on in the Options, so it works whenever he plays.

Share this post


Link to post
Share on other sites

I can put in my mission if you show me how ... it's for a mission I have built based on GDCE ... Where it's impossible for me to save ... So I wanna be HARD to kill ... coz you end up dead anyway if you play 5 hours in a single task. Last time I was successful and RTBing and My friendly sniper Killed me By mistake ... I guess it's my fault I was standing between him and the enemy.

EDIT: The link were really useful I made'm Immortal even when a tank hits me with a Massive explosion and sends me 100 ft in the sky ... But not exactly what I wanted ... I just want my guys to be hard to kill ... not Zeus! LOL

Like editing the hit points or something ...

Edited by Shinji

Share this post


Link to post
Share on other sites

will try it and get back to you ... thank you very much :)

EDIT =====>

I have added the line in the Unit "Init" field , but nothing is different. can you please explain to me what to put there ... and what value to put in the "toughunit.sqs" for my unit?

please ...

---------- Post added at 04:02 AM ---------- Previous post was at 02:18 AM ----------

It's working with regular units ... but when using SLX wounding system ... the player's unit still get on the ground in agony ... I wanna stop that ...

Can you help plz?

Edited by Shinji

Share this post


Link to post
Share on other sites

I guess it dosen't work so well for the player, but if you use it on 1 or 2 units under your command and send them against a squad then you'll see how it works.

I recall I have something else like this, I'll look and let you know.

It's working with regular units ... but when using SLX wounding system ... the player's unit still get on the ground in agony ... I wanna stop that ...

You'll need to disable slx_wounds I suppose.

Share this post


Link to post
Share on other sites

ok ... then how can I keep the SLX wound system ... but stop the rolling on the ground part when critically wounded (BUT only for the player)

Share this post


Link to post
Share on other sites

no there isn't ... or at least I didn't find any.

My knowledge is pretty limited.

I'm more of a Java 2 guy LOL

Share this post


Link to post
Share on other sites

The script didn't help ... Can you please , give any new Ideas.

Share this post


Link to post
Share on other sites

Download this and use the pbo inside.

http://www.filefront.com/15412947/cheatedmen.rar

It will add in

West->Men

East->Men

Resistance->Men

Civilian->Men

a new unit named "Cheating Unit".

they have the following armor values :

		armor=30;
	armorStructural=6;
	armorHead=6;
	armorBody=6;
	armorHands=6;
	armorLegs=6;

Making them not impossible to kill, but they can take a very lot of bullets before dying, probably +/- 2 full magazines.

Enough for an arcade-like mission.

Share this post


Link to post
Share on other sites

Yeah ... it did the job ... the "Shit everything hurts" animation still plays when I get skwoumched by bullets ... but At least now it's not immediately.

thank you! as always!

Share this post


Link to post
Share on other sites

Just copy paste this :

// some basic defines
#define TEast 0
#define TWest 1
#define TGuerrila 2
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7

#define true 1
#define false 0

// type scope
#define private 0
#define protected 1
#define public 2

#define WeaponNoSlot				0// dummy weapons
#define WeaponSlotPrimary		1// primary weapons
#define WeaponSlotSecondary	16// secondary weapons
#define WeaponSlotItem			256// items
#define WeaponSlotBinocular	4096// binocular
#define WeaponHardMounted		65536

class CfgPatches
{

class cheaters
	{
	units[]={"west_cheater","east_cheater","res-cheater","civ_cheater"};
	weapons[]={};
	requiredAddons[]= {"BIS_Resistance"};
	requiredVersion=1.85;
	};
};

class CfgVehicles
{

class All
	{
	};

class AllVehicles:All
	{
	};

class Land:AllVehicles
	{
	};

class Man:Land
	{
	};

class Soldier:Man
	{
	};

class SoldierWB:Soldier
	{
	};

class SoldierEB:Soldier
	{
	};

class SoldierGB:Soldier
	{
	};

class Civilian:Man
	{
	};

class west_cheater:SoldierWB
	{
	displayName="Cheating unit";
	armor=30;
	armorStructural=6;
	armorHead=6;
	armorBody=6;
	armorHands=6;
	armorLegs=6;
	};

class east_cheater:SoldierEB
	{
	displayName="Cheating unit";
	armor=30;
	armorStructural=6;
	armorHead=6;
	armorBody=6;
	armorHands=6;
	armorLegs=6;
	};

class res_cheater:SoldierGB
	{
	displayName="Cheating unit";
	armor=30;
	armorStructural=6;
	armorHead=6;
	armorBody=6;
	armorHands=6;
	armorLegs=6;
	};

class civ_cheater:civilian
	{
	displayName="Cheating unit";
	armor=30;
	armorStructural=6;
	armorHead=6;
	armorBody=6;
	armorHands=6;
	armorLegs=6;
	};
};

into a new text file , save the changes and rename that text file exactly :

config.cpp

Create a new folder, name this new folder by example :

cheatedmen

Put you config.cpp into the cheatedmen folder

Download MakePBO , or any other utility able to create PBO file, launch it and then select the folder cheatedmen and create the PBO.

Then drop the newly created cheatedmen.pbo into your whatevermod\Addons\ folder to have them appear in the mission editor.

Share this post


Link to post
Share on other sites

Or just use "SoldierWSaboteurCheat", "OfficerECheat", "SoldierESaboteurCheat", "OfficerGCheat", "SoldierGCheat" classes which comes with OFP.

Share this post


Link to post
Share on other sites

Because of

armor=100000;

Making them basically unkillable in normal mission conditions.

The question was about soldiers hard to kill, and with armor=30 and armorStructural=6; they are indeed hard to kill (a magazine and half of one should kill them).

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×