Page 1 of 1

How do I boost up the players health serverside?

Posted: Sun Aug 01, 2010 6:51 pm
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)

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

Posted: Mon Aug 02, 2010 3:19 am
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.

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

Posted: Mon Aug 02, 2010 4:35 pm
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.

Posted: Mon Aug 02, 2010 5:30 pm
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.

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

Posted: Wed Sep 15, 2010 4:21 pm
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.