How do I boost up the players health serverside?

Ask questions, discuss ideas, get answers
Post Reply
User avatar
fo0k
Posts: 1433
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

How do I boost up the players health serverside?

Post by fo0k »

I should search. Im sorry. Help a brother out.

I want to make all players invincible.

Its for my eternal deathmatch map. (jk)
User avatar
Apache Thunder
Posts: 1210
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: How do I boost up the players health serverside?

Post by Apache Thunder »

So just soldiers are invincible or all PCOs too?

You can try adding the "game.setGodMode 1" to your map's init.con file. I don't know if this command will work like that as I have only tested it client side.

Other then that the only other way to do this server side is to modify the game.rfa so all the materials for projectiles do zero damage to everything. (try changing the material in the material define con file instead of each one in the damage_system folder as that specifies global damage). Of coarse since your changing the damage system you can't add that to the map code.
ImageImageImage
I have cameras in your head!
User avatar
fo0k
Posts: 1433
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: How do I boost up the players health serverside?

Post by fo0k »

just soldiers.. although they will still die if inside a vehicle that dies..

I just want to boost their strength really.. its a race map.. so no need to them to ever die.
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Post by freddy »

fo0k wrote:I just want to boost their strength really.. its a race map.. so no need to them to ever die.
i dunno if you could just change the soldiers material, in CommonSoldierData.inc it just says "ObjectTemplate.Material 40"
fo0k wrote:I want to make all players invincible.
rem ObjectTemplate.geometry BodyCollision = float through walls and buildings, works server sidded.

----or god mode no hit detection from nades etc. change the bone radius to 0. Not fully tested, but rem'd works = invincible in single player.
just things i picked up, havent tested them myself.
Player
Posts: 28
Joined: Sat Oct 24, 2009 5:06 pm

Re: How do I boost up the players health serverside?

Post by Player »

It's been ages since I've tried.. but if memory serves me... you could just simply set the bone radius to zero..

Code: Select all

ObjectTemplate.active USSoldier
ObjectTemplate.setSkeletonCollisionBone Bip01_Head 0 2 40 
ObjectTemplate.setSkeletonCollisionBone Bip01_Spine2 0 -0.45 41
ObjectTemplate.setSkeletonCollisionBone Bip01_L_Forearm 0 0.0 42
ObjectTemplate.setSkeletonCollisionBone Bip01_R_Forearm 0 0.0 42
ObjectTemplate.setSkeletonCollisionBone Bip01_L_Calf 0 0.3 42
ObjectTemplate.setSkeletonCollisionBone Bip01_R_Calf 0 0.3 42
ObjectTemplate.setSkeletonCollisionBone Bip01_L_Foot 0 0 42
ObjectTemplate.setSkeletonCollisionBone Bip01_R_Foot 0 0 42
Also would allow you to easily setup so only headshots would cause damage... or say the right or left arm... etc and it's team based...
You may also need to set speedmod to 0

Best of luck.
Post Reply