Hello again,
so im still trying to disable knifing (and for gungame also setting the damage lower, so a knife is no instant) in a comfort, per user way. Since the knife is the only "weapon" i know of, that has no name to use in damage calculation (playerkilled_internals() in damage.gsc) i have to find another way.
The "no-knife-instant" can be solved by simply increasing everyones health and then adjusting the iDamage for weapons.
But the no-knife-damage is another thing. I read about the unused mw2-tank-killstreak, and found a line with if(damagetype == "mod_melee"). So the only way (i found until now) to modify knife damage is by using its damagetype. Now to the question:
Where is the right place to add a method that uses "damagetype".
In the tank-killstreak thing, it never gets mentioned where the code is located, and until now i didnt find any damagtype statements in the .gsc's int the patch_mp.ff . Could it be that this is handled in another .ff? And if so is it even possible to change anything, since (from my understanding) only the patch_mp.ff is modified on loading a mod?
Sorry for the long thread, and thanks in advance
greetz