Vehicle that stops working but never dies..

For info on the site, community and 'battlefieldy' things

Re: Vehicle that stops working but never dies..

Postby Senshi » Wed Jul 21, 2010 7:25 am

Sure you can. Though it all depends on your materialsettings. A low maxHP though means that the minimum steps for damage is 1HP. Which, having 100HP, is 1% steps. If enemies are converging on the vehicle (as it would be rather important in the CtF style gamemode) and if small arms fire damages it too, it would be good to have some fractions as reserves. But AFAIK the Hitpoint system doesn't work with fractions/decimals like 90,75 HP. At least you can't set Armoreffects etc. to such values. But well, I'm sure fook will be able to figure that out for his case specifically.
User avatar
Senshi
 
Posts: 695
Joined: Sun Oct 18, 2009 1:14 pm
Location: Germany

Re: Vehicle that stops working but never dies..

Postby Apache Thunder » Wed Jul 21, 2010 8:18 pm

After implementing a number read out for soldier HP/Vehicle HP, I am led to believe that the damage system does support fractional HP count. My BFhereos'42 mod has this feature. When taking damage, the number hud element not only shows whole number but a decimal number too. So it is possible to deal damage that is less the 1 but not zero. Not sure if the armor effect system would accept decimal numbers but I see no reason why not.

This video shows what I mean:

http://www.youtube.com/watch?v=3y8nNvY6u1Y

The numbers on the bottom left corner report the exact HP the soldier (and vehicle if the player is in one) has and does correctly report fractional HP that is on the other side of that decimal point. ;)

For vehicles, it reports the vehicle HP minus the critical damage. Once the vehicle hit's the critical damage point the HUD element reports the HP as 0 and then it goes to a negative number when the critical damage adds damage to the vehicle. (thus the negative number gets larger)

So for example a vehicle has 100 Hp and it's critical damage is set to 50. The HUD would have reported the HP as 50. When that reaches zero then the vehicle is in critical damage range and then it will go to a max of -50 before the vehicle dies. ;)
ImageImageImage

I have cameras in your head!
User avatar
Apache Thunder
 
Posts: 1192
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA

Re: Vehicle that stops working but never dies..

Postby fo0k » Wed Jul 21, 2010 10:19 pm

That freeking mod is insane dude. :)
User avatar
fo0k
 
Posts: 1411
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: Vehicle that stops working but never dies..

Postby russ » Wed Apr 18, 2018 9:27 am

Zombie thread, but you might try ObjectTemplate.resetWhenRemoved 1. After timeToLiveAfterDeath has passed, it should reset it to full health.
russ
 
Posts: 37
Joined: Sun Oct 29, 2017 8:12 am

Re: Vehicle that stops working but never dies..

Postby freddy » Fri Apr 20, 2018 2:09 am

russ wrote:Zombie thread, but you might try ObjectTemplate.resetWhenRemoved 1. After timeToLiveAfterDeath has passed, it should reset it to full health.

I must try that code! :)
User avatar
freddy
 
Posts: 1222
Joined: Sun Oct 18, 2009 4:58 pm

Re: Vehicle that stops working but never dies..

Postby Swaffy » Thu Apr 26, 2018 5:31 am

Swaffy's booty code inbound, take cover

ObjectTemplate.hitpoints 9999
ObjectTemplate.maxhitpoints 9999
ObjectTemplate.criticalDamage 9959
ObjectTemplate.hpLostWhileCriticalDamage 0

(tank sitting at -9040 hp)
"Swaffy repair that tank!"
"... but it's over 9000 ..."
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Image
User avatar
Swaffy
 
Posts: 1699
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Previous

Return to General discussion & notices

Who is online

Users browsing this forum: No registered users and 8 guests