[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
Battlefield Modding Tutorials BFMODS • View topic - health

Battlefield Modding Tutorials BFMODS

Battlefield Modding Tutorials
It is currently Thu Oct 31, 2024 11:47 pm

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: health
PostPosted: Wed Feb 21, 2007 10:22 pm 
Offline

Joined: Sat Sep 16, 2006 12:29 pm
Posts: 84
hi all

first, good to see this site again! :D :D

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


Top
 Profile Send private message E-mail  
 
 Post subject:
PostPosted: Wed Feb 21, 2007 10:52 pm 
Offline
User avatar

Joined: Sun Dec 31, 2006 12:13 am
Posts: 2027
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!


Top
 Profile Send private message E-mail  
 
 Post subject:
PostPosted: Thu Feb 22, 2007 5:08 pm 
Offline

Joined: Sat Sep 16, 2006 12:29 pm
Posts: 84
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


Top
 Profile Send private message E-mail  
 
 Post subject:
PostPosted: Thu Feb 22, 2007 9:14 pm 
Offline

Joined: Sun Jun 18, 2006 3:07 pm
Posts: 319
Location: Ontario, Canada
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.

_________________
xfire: bulletpr00fmonk


Top
 Profile Send private message E-mail  
 
 Post subject:
PostPosted: Sat Feb 24, 2007 2:21 pm 
Offline

Joined: Sat Sep 16, 2006 12:29 pm
Posts: 84
thx for reply



Max


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 37 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
Powered by phpBB® Forum Software © phpBB Group