Posts: 993
Threads: 86
Joined: Feb 2011
Reputation:
49
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
Posts: 4,530
Threads: 254
Joined: Nov 2010
Reputation:
65
06-01-2011, 14:34
(This post was last modified: 06-01-2011, 15:27 by AZUMIKKEL.)
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);
}
Posts: 993
Threads: 86
Joined: Feb 2011
Reputation:
49
06-01-2011, 14:44
(This post was last modified: 06-01-2011, 15:03 by rotceh_dnih.)
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
Posts: 4,530
Threads: 254
Joined: Nov 2010
Reputation:
65
Posts: 993
Threads: 86
Joined: Feb 2011
Reputation:
49
06-01-2011, 16:22
(This post was last modified: 06-01-2011, 16:55 by rotceh_dnih.)
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
Posts: 993
Threads: 86
Joined: Feb 2011
Reputation:
49
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
Posts: 4,530
Threads: 254
Joined: Nov 2010
Reputation:
65
put this
Code: if(isSubStr(sWeapon, "willy") || isSubStr(sWeapon, "smoke"))
iDamage = 0;
in the thread in _callbacksetup.gsc named CodeCallback_PlayerDamage
Posts: 993
Threads: 86
Joined: Feb 2011
Reputation:
49
06-02-2011, 01:48
(This post was last modified: 06-02-2011, 01:48 by rotceh_dnih.)
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
Posts: 993
Threads: 86
Joined: Feb 2011
Reputation:
49
06-02-2011, 12:23
(This post was last modified: 06-02-2011, 12:35 by rotceh_dnih.)
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
Posts: 993
Threads: 86
Joined: Feb 2011
Reputation:
49
hey
Code: iDFlags & level.iDFLAGS_PENETRATION
is this helpfull?
|