[?] Soldier HPs

Making or wanting help making your own asset? Check in here
Post Reply
USMC scout sniper
Posts: 487
Joined: 2010-01-03 04:21

[?] Soldier HPs

Post by USMC scout sniper »

I want to increase my health in SP but keep the normal bullet damage so my team mates die, and I don't.
HELL HAVE NO FURY LIKE ME WITH A M249 SAW PIP!
Shovel
Posts: 860
Joined: 2010-08-26 14:23

re: [?] Soldier HPs

Post by Shovel »

Sounds like Call of Duty campaign lol.
Shovel009
VapoMan
Retired PR Developer
Posts: 1139
Joined: 2009-05-29 07:11

re: [?] Soldier HPs

Post by VapoMan »

Im pretty sure you cant have serperate hitpoints. If you change the hotpoints value for one soldier, AI and Players will have the extra health if they choose that class.

To change the hit points you have to edit each individual soldier you want changed by chaning the values in the pr_X_soldier1.tweak files.

These can be found in:
mods/pr/objects/soldiers_server.zip/soldiers
Then just go into the army you want and edit the tweak files in notepad.

Not really sure what values to change but ive highlighted the ones I think would most likely correspond to armour hitpoints. Just fiddle around with it and have fun.

Code: Select all

GeometryTemplate.setSubGeometryLodDistance 1 0 10		
GeometryTemplate.setSubGeometryLodDistance 1 1 20
ObjectTemplate.active pr_ch_soldier1
ObjectTemplate.networkableInfo BasicInfo
ObjectTemplate.hasMobilePhysics 1
rem ObjectTemplate.hasMobilePhysics 0
ObjectTemplate.collisionGroups 16
ObjectTemplate.CullRadiusScale 12.5
ObjectTemplate.castsDynamicShadow 1
ObjectTemplate.aiTemplate Soldier

rem For adding lightflare at item index 7 --jkj 
ObjectTemplate.inventorySize 10

ObjectTemplate.manDownCameraOffsetInDof 0.11
ObjectTemplate.manDownCameraOffsetInUp  0.5
ObjectTemplate.ragdollLandedDelay 4

ObjectTemplate.drag 1.0
ObjectTemplate.mass 200
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.SprintRecoverTime 80
ObjectTemplate.SprintDissipationTime 30
ObjectTemplate.SprintLimit 0.25
ObjectTemplate.SprintLossAtJump 0.4
rem ObjectTemplate.Grip 20

[color=DarkRed]rem ---BeginComp:Armor ---
ObjectTemplate.createComponent Armor
ObjectTemplate.armor.maxHitPoints 100
ObjectTemplate.armor.hitPoints 100
ObjectTemplate.armor.wreckhitpoints 320 
ObjectTemplate.armor.defaultMaterial 24
ObjectTemplate.armor.explosionForceMod 25
ObjectTemplate.armor.explosionForceMax 1000
ObjectTemplate.armor.TimeToStayAsWreck 300
ObjectTemplate.armor.maxsoldierwrecktime 300.000000
ObjectTemplate.armor.angleMod 1
ObjectTemplate.armor.wreckExplosionForceMod 0
ObjectTemplate.armor.wreckExplosionForceMax 0
ObjectTemplate.armor.hpLostWhileCriticalDamage 0.20
ObjectTemplate.armor.criticalDamage 75
ObjectTemplate.armor.addArmorEffect 75 e_dstate_soldier40 0/0/0 0/0/0
ObjectTemplate.armor.addArmorEffect 40 e_dstate_soldier40 0/0/0 0/0/0
ObjectTemplate.armor.addArmorEffect 30 e_dstate_soldier30 0/0/0 0/0/0
ObjectTemplate.armor.addArmorEffect 20 e_dstate_soldier20 0/0/0 0/0/0
ObjectTemplate.armor.addArmorEffect 10 e_dstate_soldier10 0/0/0 0/0/0
ObjectTemplate.armor.addArmorEffect 5 e_dstate_soldier05 0/0/0 0/0/0
ObjectTemplate.armor.addArmorEffect 0 e_dstate_soldier00 0/0/0 0/0/0
rem ---EndComp ---[/color]

ObjectTemplate.collisionMesh Soldier_CollisionMesh
rem *** Animation ****
ObjectTemplate.skeleton1P Objects/Soldiers/Common/Animations/1p_setup.ske
ObjectTemplate.skeleton3P Objects/Soldiers/Common/Animations/3p_setup.ske
ObjectTemplate.animationSystem1P Objects/Soldiers/Common/Animations/AnimationSystem1p.inc
ObjectTemplate.animationSystem3P Objects/Soldiers/Common/Animations/AnimationSystem3p.inc
rem Stand
ObjectTemplate.poseCameraPosition 0 0/0.47/0.1
rem Crouch
ObjectTemplate.poseCameraPosition 1 0/-0.05/0.1
rem Prone
ObjectTemplate.poseCameraPosition 2 0/-0.63/0.1

rem boneName, material, offset, radius, length
ObjectTemplate.setSkeletonCollisionBone left_upperleg 24 0/0.03/0 0.09 -0.35 
ObjectTemplate.setSkeletonCollisionBone right_upperleg 24 0/0.03/0 0.09 0.35

ObjectTemplate.setSkeletonCollisionBone left_lowerleg 77 0/0.03/0.02 0.08 -0.32 
ObjectTemplate.setSkeletonCollisionBone right_lowerleg 77 0/0.03/0.02 0.08 0.32 

ObjectTemplate.setSkeletonCollisionBone head 25 0/-0.02/0.02 0.07 -0.08 
ObjectTemplate.setSkeletonCollisionBone spine2 23 0/-0.05/-0.03 0.15 -0.16 
ObjectTemplate.setSkeletonCollisionBone spine3 23 0/-0.03/0.02 0.16 -0.05 

ObjectTemplate.setSkeletonCollisionBone right_shoulder 77 0.01/0.03/0 0.06 0.2 
ObjectTemplate.setSkeletonCollisionBone right_low_arm 77 -0.01/0.03/0 0.045 0.18 

ObjectTemplate.setSkeletonCollisionBone left_shoulder 77 0.01/0.03/0 0.06 -0.2 
ObjectTemplate.setSkeletonCollisionBone left_low_arm 77 -0.01/0.03/0 0.045 -0.18 

ObjectTemplate.addTemplate SoldierCamera
ObjectTemplate.setPosition 0/4.1/0
ObjectTemplate.addTemplate e_sold_swim

ObjectTemplate.active S_pr_ch_soldier1_Death
ObjectTemplate.createdInEditor 1
ObjectTemplate.soundFilename common/sound/Die/Die_01.wav,common/sound/Die/Die_02.wav,common/sound/Die/Die_03.wav,common/sound/Die/Die_04.wav,common/sound/Die/Die_05.wav,common/sound/Die/Die_06.wav,common/sound/Die/Die_07.wav,common/sound/Die/Die_08.wav,common/sound/Die/Die_09.wav,common/sound/Die/Die_10.wav,common/sound/Die/Die_11.wav,common/sound/Die/Die_12.wav,common/sound/Die/Die_13.wav,common/sound/Die/Die_14.wav,common/sound/Die/Die_15.wav
ObjectTemplate.loopCount 1
ObjectTemplate.is3dSound 1
ObjectTemplate.volume 0.7 
ObjectTemplate.reverbLevel 0.8
ObjectTemplate.position 0/0.8/0
ObjectTemplate.pitch 0.94
ObjectTemplate.pitchEnvelope 0/1/0.9/1.1/1/1/0/0.98/1.03/
ObjectTemplate.volumeEnvelope 0/1/0/1/0/0/
ObjectTemplate.minDistance 2
ObjectTemplate.halfVolumeDistance 6


ObjectTemplate.active S_pr_ch_soldier1_Revive
ObjectTemplate.createdInEditor 1
ObjectTemplate.soundFilename Objects/Soldiers/Common/Sound/Cough/cough_01.wav,Objects/Soldiers/Common/Sound/Cough/cough_02.wav,Objects/Soldiers/Common/Sound/Cough/cough_03.wav,Objects/Soldiers/Common/Sound/Cough/cough_04.wav
ObjectTemplate.loopCount 1
ObjectTemplate.is3dSound 1
ObjectTemplate.volume 0.53 
ObjectTemplate.reverbLevel 0.8
ObjectTemplate.position 0/0/0
ObjectTemplate.pitch 0.88
ObjectTemplate.pitchEnvelope 0/1/0.9/1.1/1/1/0/0.99/1.01/
ObjectTemplate.volumeEnvelope 0/1/0/1/0/0/
ObjectTemplate.minDistance 1.5


ObjectTemplate.active S_pr_ch_soldier1_Swim
ObjectTemplate.createdInEditor 1
ObjectTemplate.soundFilename Objects/Soldiers/Common/Sound/Swim/swim_stroke_01.wav,Objects/Soldiers/Common/Sound/Swim/swim_stroke_02.wav,Objects/Soldiers/Common/Sound/Swim/swim_stroke_03.wav
ObjectTemplate.loopCount 1
ObjectTemplate.is3dSound 1
ObjectTemplate.volume 0.60
ObjectTemplate.reverbLevel 0.8
ObjectTemplate.position 0/0/0
ObjectTemplate.pitchEnvelope 0/1/0.9/1.1/1/1/0/0.99/1.01/
ObjectTemplate.minDistance 2


ObjectTemplate.active S_pr_ch_soldier1_Swim_Sprint
ObjectTemplate.createdInEditor 1
ObjectTemplate.soundFilename Objects/Soldiers/Common/Sound/Swim/swim_sprint_01.wav,Objects/Soldiers/Common/Sound/Swim/swim_sprint_02.wav,Objects/Soldiers/Common/Sound/Swim/swim_sprint_03.wav
ObjectTemplate.loopCount 1
ObjectTemplate.is3dSound 1
ObjectTemplate.volume 0.67
ObjectTemplate.reverbLevel 0.8
ObjectTemplate.position 0/0/0
ObjectTemplate.pitchEnvelope 0/1/0.9/1.1/1/1/0/0.99/1.01/
ObjectTemplate.minDistance 2


ObjectTemplate.active S_pr_ch_soldier1_Swim_Still
ObjectTemplate.createdInEditor 1
ObjectTemplate.soundFilename Objects/Soldiers/Common/Sound/Swim/swim_still_01.wav,Objects/Soldiers/Common/Sound/Swim/swim_still_02.wav,Objects/Soldiers/Common/Sound/Swim/swim_still_03.wav
ObjectTemplate.loopCount 1
ObjectTemplate.is3dSound 1
ObjectTemplate.volume 0.51 
ObjectTemplate.reverbLevel 0.8
ObjectTemplate.position 0/0/0
ObjectTemplate.pitchEnvelope 0/1/0.9/1.1/1/1/0/0.99/1.01/
ObjectTemplate.minDistance 1.5

Image"Eight glorious sides and eight stunning angles!"Image
USMC scout sniper
Posts: 487
Joined: 2010-01-03 04:21

re: [?] Soldier HPs

Post by USMC scout sniper »

Thanks!!!!!!!!!
HELL HAVE NO FURY LIKE ME WITH A M249 SAW PIP!
USMC scout sniper
Posts: 487
Joined: 2010-01-03 04:21

re: [?] Soldier HPs

Post by USMC scout sniper »

I didn't work.Thanks for trying to help though.
HELL HAVE NO FURY LIKE ME WITH A M249 SAW PIP!
Post Reply

Return to “PR:BF2 Community Modding”