Patches #958

Chest hitbox area (coreshot). Hope I didn't screw up the code too much.

Added by mikeeusa3 over 2 years ago. Updated about 1 year ago.

Status:ClosedStart date:01/01/2012
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:Mods / Unofficial
Target version:-

Description

Chest hitbox area (coreshot). Hope I didn't screw up the code too much.
Yes I know, xonotic doesn't want or need this, etc etc etc, I was wrong to attempt to code this, etc etc,.
Here's the diff.

Purpose of the diff: add damage for plugging someone in the heart.
Note: added a var to the fireBallisticBullet function, at the end (coredmg)
Divverent could you look over my added code there and see if I messed up somewhere, I fear I may have, though I don't see any probs in gameplay

The heart img used in the graphic was public domain:

http://en.wikipedia.org/wiki/File:Humhrt2.jpg

PD-icon.svg This work has been released into the public domain by its author, Stanwhit607 at the English Wikipedia project. This applies worldwide.

In case this is not legally possible:
Stanwhit607 grants anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.

diff_coreshot_chesthitbox.diff Magnifier - diff (2.47 KB) mikeeusa3, 01/01/2012 05:06 pm

notify_coreshot.tga - img (75.2 KB) mikeeusa3, 01/01/2012 05:06 pm

History

#1 Updated by mikeeusa3 over 2 years ago

Fuck you divverent.

renumber notification types to annoy mi..., I mean, to prevent clashes with future death type additions

Where did headshot go btw?

#2 Updated by mikeeusa3 over 2 years ago

Actually... not fuck you :P, it's a good idea.
Thanks for renumbering to prevent clashes.

#3 Updated by mikeeusa3 over 2 years ago

else if(killnotify_deathtype[j] & HITTYPE_HEADSHOT && (w WEP_RIFLE || w WEP_MINSTANEX)) // all headshot weapons go here

+ {

+ s = "notify_headshot";

+ }

Ah much nicer code :D

I was wondering about the previous code.. seemed hacky... like my code is all the time ...

#4 Updated by mikeeusa3 over 2 years ago

Div thanks for these edits. You saw I was adding more deathtypes and you renumbered so the limit would not be hit soon.

#5 Updated by mand1nga over 2 years ago

  • Category set to Mods / Unofficial
  • Target version set to 12

#6 Updated by divVerent about 2 years ago

  • Status changed from New to 10

#7 Updated by Samual about 1 year ago

  • Target version deleted (12)

#8 Updated by Samual about 1 year ago

  • Status changed from 10 to Closed

Also available in: Atom PDF