Author Topic: {SOLVED}Making splash damage for MD  (Read 4026 times)

ACKMAN

  • Posts: 342
  • Turrets: +9/-20
{SOLVED}Making splash damage for MD
« on: November 04, 2008, 07:04:47 pm »
Well... I'm making a 'mod' and now i wanna add splash damageknocback. I don't know all tremulous code. So, i just ask.

"what should i do to add splash knockback to MD?"


I 'searched' in the code and i've got an idea about how to make it. But... i'm not sure.


*SPAM*
« Last Edit: November 06, 2008, 07:16:52 pm by ACKMAN »

googles

  • Posts: 219
  • Turrets: +30/-19
Re: Making splash damage for MD
« Reply #1 on: November 05, 2008, 02:31:32 am »
Splash being within the area of the shot correct? <.< if so..look at trap_EntitiesInBox. This will gather all the entities within a defined bbox. Or for an example of its usage, look for G_RadiusDamage in g_combat.c
« Last Edit: November 05, 2008, 02:34:29 am by googles »

ACKMAN

  • Posts: 342
  • Turrets: +9/-20
Re: Making splash damage for MD
« Reply #2 on: November 05, 2008, 02:37:55 pm »
Thank you, ill look there :D

ACKMAN

  • Posts: 342
  • Turrets: +9/-20
Re: Making splash damage for MD
« Reply #3 on: November 06, 2008, 07:16:29 pm »
Thanks :3

FIXED

Close please