Battlefield Modding Tutorials BFMODS https://battlefieldmodding.com/ssm/phpBB3/ |
|
health https://battlefieldmodding.com/ssm/phpBB3/viewtopic.php?f=3&t=2707 |
Page 1 of 1 |
Author: | can1.111 [ Wed Feb 21, 2007 10:22 pm ] |
Post subject: | health |
hi all first, good to see this site again! I have a question about the health material this is the objectfile of mediclocker : rem rem *** mediclocker *** rem ObjectTemplate.create Bundle mediclocker ObjectTemplate.saveInSeparateFile 1 ObjectTemplate.geometry mediclocker_m1 ObjectTemplate.aiTemplate mediclocker_m1 ObjectTemplate.hasCollisionPhysics 1 ObjectTemplate.hasResponsePhysics 1 rem ------------------------------------- ObjectTemplate.addTemplate mediclockerRepairpoint ObjectTemplate.setPosition 0/0/0.5 ObjectTemplate.setRotation 0/0/0 ObjectTemplate.create SupplyDepot mediclockerRepairpoint ObjectTemplate.radius 2 ObjectTemplate.team 0 ObjectTemplate.workOnVehicles 0 ObjectTemplate.workOnSoldiers 1 ObjectTemplate.setHealth -1 4.0 0 how can i make the health take lesser than here? It is possible to make per second 1% health? may it has a similar topic of this but i couldnt find ... Best Regards Max |
Author: | Iced Earth [ Wed Feb 21, 2007 10:52 pm ] |
Post subject: | |
Someone correct me if I'm wrong, but I'm pretty sure a soldier in 1942 has 30 hitpoints. So, I would change the 4.0 value (which would take 7.5 'ticks' of healing juice to heal you) to 0.3 (100 'ticks' would heal you to 100% health). That seems low, but you could give it a try and see how it works. 5 percent may work better (set to 1.5). Let us know how it goes! |
Author: | can1.111 [ Thu Feb 22, 2007 5:08 pm ] |
Post subject: | |
thx i tried it works do you know another way how to make this without changing the soldiers objects. I mean do you know how to make if you stand near of a medbox, you take lesser health as if you stand near at the mediclocker. may the problem is ObjectTemplate.setHealth -1 4.0 0 (im not sure) i tried some changes on it but without succes can you help? Max |
Author: | Bullet-ProofMonk [ Thu Feb 22, 2007 9:14 pm ] |
Post subject: | |
I'm not quite sure what a medbox is, but I'm guessing that it's in DC or something... Anyways, if the medbox and medic lockers have different supply depot names, then all you have to do is active the one, and change the heal factor to a lower value. ObjectTemplate.acitve <NAME> ObjectTemplate.setHealth -1 0.3 0 But if they both just use the mediclockerRepairpoint supply depot, then unfortunately, when you change one, both are affected. |
Author: | can1.111 [ Sat Feb 24, 2007 2:21 pm ] |
Post subject: | |
thx for reply Max |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |