Author Topic: .Ini help need (damage)  (Read 2928 times)

0 Members and 1 Guest are viewing this topic.

Offline PaFel

  • Veteran
  • *****
  • Posts: 1628
  • Weaponology Expert
    • PaFcio TACTIACAL
.Ini help need (damage)
« on: April 30, 2007, 12:59:27 pm »
Ok. I'm makin' BF2 mod (Soldatfield 2). I found tables with all values of BF2 weapons (normal bf2). I was looking for some help at soldat-wiki but I didn't foud what I was lookin' for. I need to know about damage (accurate datas). I meen that when I shoot to someone with a bullet that has "x" power he loses "y" health (torso hit). Oh. And one more thing. Does anyone know about "magic" value (damage) that makes health rises?
Quote
It is possible to set Damage values into negative thousands and achieve an only partially injuring explosion or even a healing explosion
« Last Edit: April 30, 2007, 01:02:41 pm by PaFel »

Offline freestyler

  • Soldat Beta Team
  • Camper
  • ******
  • Posts: 326
Re: .Ini help need (damage)
« Reply #1 on: April 30, 2007, 01:54:56 pm »
http://wiki.soldat.nl/Health

I think that's what you need...

Offline PaFel

  • Veteran
  • *****
  • Posts: 1628
  • Weaponology Expert
    • PaFcio TACTIACAL
Re: .Ini help need (damage)
« Reply #2 on: April 30, 2007, 02:02:47 pm »
I think that's what you need...

Damn! Thanks! I was lookin' under wrong word. But what with "magic" value? ;D

Wait a minute. So I should to multiply Damage * Hitbox modifier * Bullet speed? Ok. Here you have eg. on Socom:

Damage=172
Speed=180
Torso hit= 100%

Quote
It should be noted that Damage is not the value from the weapons.ini; rather, it is derived from it by dividing by 100.

172:100=1.72

1.72*100%*180=30960 ???

Quote
The maximum health state is 200 units, or 133%

So how to do it?
« Last Edit: April 30, 2007, 02:36:19 pm by PaFel »

Offline xtishereb

  • Flagrunner
  • ****
  • Posts: 908
  • I swear, my chainsaw killed you on its own.
Re: .Ini help need (damage)
« Reply #3 on: April 30, 2007, 04:35:11 pm »
To make bullets increase health, they need negative damage or speed.
The damage inflicted by a bullet is determined by the bullet's speed on time of impact and the damage value of the bullet. Only explosive projectiles have a constant damage level as they lose speed, all other bullets lose damage the slower they go.
<3*xwd
love conquers all

Offline Serial K!ller

  • Camper
  • ***
  • Posts: 408
    • Soldat Mods Archive
Re: .Ini help need (damage)
« Reply #4 on: April 30, 2007, 05:07:58 pm »
172:100=1.72

1.72*100%*180=30960 ???

Quote
The maximum health state is 200 units, or 133%

So how to do it?

you have to multiply it with around 0,000654 then you get the damage(in%) at 0 range (initial speed).
but the speed can drop over some distance so that damage isn't really accurate for balancing.

you can use this weapon modder to calculate damage: http://forums.soldat.pl/index.php?topic=12547.0
« Last Edit: May 02, 2007, 01:44:09 pm by Serial K!ller »

Offline Lord Frunkamunch

  • Veteran
  • *****
  • Posts: 1418
  • DRR...DRR...DRR...
Re: .Ini help need (damage)
« Reply #5 on: April 30, 2007, 09:56:01 pm »
To make bullets increase health, they need negative damage or speed.
The damage inflicted by a bullet is determined by the bullet's speed on time of impact and the damage value of the bullet. Only explosive projectiles have a constant damage level as they lose speed, all other bullets lose damage the slower they go.

Wrong, speed has nothing to do with healing bullets.

Speed 99999 and damage -100 will heal as much as speed 100 damage -100.

Plus, if the damage is negative or zero, no matter what the speed it can't kill. I've also found that damage seems to make more of a difference on the bullet's power than speed does.

With negative speed, the other stats don't matter; as the bullet becomes part of the background and can't collide.
I attend grammar school, last grade, and ignorance is all around me. Well, good for them. Ignorance is bliss.

Offline xtishereb

  • Flagrunner
  • ****
  • Posts: 908
  • I swear, my chainsaw killed you on its own.
Re: .Ini help need (damage)
« Reply #6 on: May 01, 2007, 02:43:12 pm »
No, I'm right. Check out the Diahhrea Gun from Rambo_6's SUPERMAWD. That has negative speed and heals whatever it touches.

You're thinking of a speed of zero. That causes bullets to drop straight down through polygons and colliders, only colliding with players.
<3*xwd
love conquers all

Offline Lord Frunkamunch

  • Veteran
  • *****
  • Posts: 1418
  • DRR...DRR...DRR...
Re: .Ini help need (damage)
« Reply #7 on: May 01, 2007, 09:30:19 pm »
You sure? Because every time I've used a negative speed weapon (yes, negative, not 0) it has gone through walls and players in the opposite direction I was pointing.
I attend grammar school, last grade, and ignorance is all around me. Well, good for them. Ignorance is bliss.

Offline Keron Cyst

  • Global Moderator
  • Rainbow Warrior
  • *****
  • Posts: 2872
  • will waypoint for food
Re: .Ini help need (damage)
« Reply #8 on: May 02, 2007, 12:39:51 am »
... speed has nothing to do with healing bullets.

Speed 99999 and damage -100 will heal as much as speed 100 damage -100....
This is dead wrong; I personally tested it myself a long time ago. You go set your Steyr to -10 damage, fire at some bots, and tell me if it heals all the time.

The wiki is inaccurate. The values ADD; they don't MULTIPLY. If you have a bullet going fast enough it will injure if it can overpower the negative Damage.

Offline PaFel

  • Veteran
  • *****
  • Posts: 1628
  • Weaponology Expert
    • PaFcio TACTIACAL
Re: .Ini help need (damage)
« Reply #9 on: May 02, 2007, 03:02:11 am »
... speed has nothing to do with healing bullets.

Quote
Speed 99999 and damage -100 will heal as much as speed 100 damage -100....
This is dead wrong; I personally tested it myself a long time ago. You go set your Steyr to -10 damage, fire at some bots, and tell me if it heals all the time.

The wiki is inaccurate. The values ADD; they don't MULTIPLY. If you have a bullet going fast enough it will injure if it can overpower the negative Damage.

So ok, Socom eg.:

1.72+100+180=281.72

Quote
The maximum health state is 200 units, or 133%

Or maybe 281.72 is initial damage that decreases after some distance?

you can use this weapon modder to calculate damage: http://forums.soldat.pl/index.php?topic=12547.0

:/ ti has not enought values for almost all weapons. (eg. MP5 only to 15,... I need to 19 etc.)
« Last Edit: May 02, 2007, 03:06:03 am by PaFel »

Offline Serial K!ller

  • Camper
  • ***
  • Posts: 408
    • Soldat Mods Archive
Re: .Ini help need (damage)
« Reply #10 on: May 02, 2007, 02:09:43 pm »
So ok, Socom eg.:

1.72+100+180=281.72
172(dam)*180(spd)*0,000654=20,24%~~20%
the formula isn't 100% correct but it's pretty close with normal speeds

also tested it to make sure:

at a half screen damage was about 16 (so -20%).

you can easily test the damage reduction ingame with a dummybot on team match with friendly fire on.
Code: [Select]
[BOT]
Name=Dummy
Color1=$00008000
Color2=$00008000
Skin_Color=$00FFFFFF
Hair_Color=$00C0C0C0
Favourite_Weapon=Barret M82A1
Secondary_Weapon=Barret M82A1
Friend=
Accuracy=5
Shoot_Dead=0
Grenade_Frequency=1000
Camping=255
OnStartUse=2
Hair=4
Headgear=0
Chain=0
Chat_Frequency=10
Chat_Kill=Fire!
Chat_Dead=Fi-agh!
Chat_Lowhealth=
Chat_SeeEnemy=Aim and...
Chat_Winning=