I should search. Im sorry. Help a brother out.
I want to make all players invincible.
Its for my eternal deathmatch map. (jk)
How do I boost up the players health serverside?
- Apache Thunder
- Posts: 1213
- Joined: Mon Oct 19, 2009 2:48 am
- Location: Levelland Texas, USA
- Contact:
Re: How do I boost up the players health serverside?
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.
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.



I have cameras in your head!
Re: How do I boost up the players health serverside?
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.
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 just want to boost their strength really.. its a race map.. so no need to them to ever die.
fo0k wrote:I want to make all players invincible.
just things i picked up, havent tested them myself.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.
Re: How do I boost up the players health serverside?
It's been ages since I've tried.. but if memory serves me... you could just simply set the bone radius to zero..
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.
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
You may also need to set speedmod to 0
Best of luck.