ItsMods

Full Version: remove willy pete hitmarkers?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
hey i'm trying to remove hitmarkers on willypete"smoke" , dose anyone know how to do that ? i've found edited the _damagefeedback.gsc i could remove all tags but thats not what a want , so please if you know how let us know xD
Code:
CodeCallback_PlayerDamage(eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, timeOffset)
{
self endon("disconnect");
if(isSubStr(sWeapon, "willy") || isSubStr(sWeapon, "smoke"))
iDamage = 0;
    [[level.callbackPlayerDamage]](eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, timeOffset);
}
wow thanks , oh would that go in _callbacksetup.gsc?
ok i tried that but didnt work still got tags when throwning the smoke at people Sad
Updated above post
hey just gave that a try but it didnt seem to work ,bugger ,
thanks heaps for looking in to this for me , your really a great help and we need more people like you here xD any other suggestions ?

oh and i thought maybe it just needed the full name so i tried
Code:
    if(isSubStr(sWeapon, "willy_pete_mp"))
iDamage = 0;
but that didnt work ether Sad
im doing it right by addin in to _callbacksetup.gsc yea? coz im not getting compile errors or anything i just keep getting tags :S
put this
Code:
if(isSubStr(sWeapon, "willy") || isSubStr(sWeapon, "smoke"))
iDamage = 0;
in the thread in _callbacksetup.gsc named CodeCallback_PlayerDamage
yea thats what i was doing, this is what my callbacksetup looks like
Code:
/*================
Called when a player has taken damage.
self is the player that took damage.
================*/
CodeCallback_PlayerDamage(eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, timeOffset)
{
    self endon("disconnect");
if(isSubStr(sWeapon, "willy") || isSubStr(sWeapon, "smoke"))
iDamage = 0;

    [[level.callbackPlayerDamage]](eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, timeOffset);
}
but thats not working
hmm what am in doing wrong,, or am i doing it right but this code dose not work? could maybe someone else test it ??? plaese
hey
Code:
iDFlags & level.iDFLAGS_PENETRATION
is this helpfull?
Pages: 1 2