Author Topic: Modding explosion bullets...  (Read 1110 times)

0 Members and 1 Guest are viewing this topic.

Offline Drax

  • Soldier
  • **
  • Posts: 241
Modding explosion bullets...
« on: April 01, 2014, 01:47:42 pm »
can we mod (using script if needed) grenade damage. law damage? because it seems like I can't.... I don't want it to kill with one shot...

Offline Akinaro

  • Flagrunner
  • ****
  • Posts: 749
Re: Modding explosion bullets...
« Reply #1 on: April 01, 2014, 01:56:19 pm »
Change name of topic so you can ask all your question in one place(its also good for others that would as the same question in future).


You have this in weapon.ini
[M72 LAW]
Damage=155000
FireInterval=6
Ammo=1
ReloadTime=300
Speed=230
BulletStyle=12
StartUpTime=13
Bink=0
MovementAcc=0
BulletSpread=0
Recoil=0
Push=0
InheritedVelocity=50

[Grenade]
Damage=150000
FireInterval=80
Ammo=1
ReloadTime=20
Speed=50
BulletStyle=2
StartUpTime=0
Bink=0
MovementAcc=0
BulletSpread=0
Recoil=0
Push=0
InheritedVelocity=100

Offline Drax

  • Soldier
  • **
  • Posts: 241
Re: Modding explosion bullets...
« Reply #2 on: April 01, 2014, 02:48:38 pm »
I know about weapon.ini... but it's not working.. ;/ so I guess we need a script for that right?

Offline kicikici

  • Soldier
  • **
  • Posts: 180
Re: Modding explosion bullets...
« Reply #3 on: April 01, 2014, 03:38:11 pm »
Changing result in OnPlayerDamage function isn't working?
« Last Edit: April 01, 2014, 04:11:19 pm by kicikici »
Classic banana

Offline Drax

  • Soldier
  • **
  • Posts: 241
Re: Modding explosion bullets...
« Reply #4 on: April 01, 2014, 03:51:42 pm »
I don't know how would it look like or how would it work, so please describe this a little more...

Offline kicikici

  • Soldier
  • **
  • Posts: 180
Re: Modding explosion bullets...
« Reply #5 on: April 01, 2014, 04:14:41 pm »
http://devs.soldat.pl/index.php/OnPlayerDamage

Description from this topic should tell you how it works.
Classic banana

Offline L[0ne]R

  • Soldat Beta Team
  • Rainbow Warrior
  • ******
  • Posts: 2079
  • need a life. looking for donors.
Re: Modding explosion bullets...
« Reply #6 on: April 01, 2014, 10:21:11 pm »
Have you tried changing it to Damage=1 for both M72 LAW and Grenade? I don't see why it wouldn't work, you're probably doing something wrong.

Offline Drax

  • Soldier
  • **
  • Posts: 241
Re: Modding explosion bullets...
« Reply #7 on: April 01, 2014, 10:49:31 pm »
Quote
Have you tried changing it to Damage=1 for both M72 LAW and Grenade? I don't see why it wouldn't work, you're probably doing something wrong.

ok it does work for grenade, but it doesn't for m72 law...
Quote
I don't see why it wouldn't work, you're probably doing something wrong.

did you try it yourself? does it work for you?

Quote
FalconPL
It's not possible. m79, flaming arrow and LAW have hardcoded damage that cannot be prevented from script.

so I guess it can not be changed....

Offline Vucgy92

  • Soldier
  • **
  • Posts: 221
  • cyklon-b is the only way
Re: Modding explosion bullets...
« Reply #8 on: April 02, 2014, 04:38:00 am »
the m72 and m79 kills always instantly at a direct hit even if the damage is zero
Choose one,
Bonecrusher

Offline dominikkk26

  • Camper
  • ***
  • Posts: 404
    • PMGsite
Re: Modding explosion bullets...
« Reply #9 on: April 03, 2014, 11:06:40 am »
You can revive the player in the place of death and injure desirable damage.

Offline Drax

  • Soldier
  • **
  • Posts: 241
Re: Modding explosion bullets...
« Reply #10 on: April 03, 2014, 12:59:38 pm »
its some kind of solution but a very bad one... did you even think how would it look like?