Results 1 to 5 of 5
  1. #1
    Insane's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    9,055
    Reputation
    1007
    Thanks
    1,997

    Disabled Hitmarkers

    Here is how to disable hitmarkers

    For Noobs:
    Just find your int and put the stuff that you see below there.
    same for everything else...
    (PS: the spacing is right in edit mode but they take them away when you save)
    init()
    {
    precacheShader("damage_feedback");
    precacheShader("damage_feedback_j");
    precacheShader("damage_feedback_endgame");
    precacheShader("scavenger_pickup");

    level thread onPlayerConnect();
    }
    onPlayerConnect()
    {
    for(;;)
    {
    level waittill("connected", player);

    player.hud_damagefeedback = newClientHudElem(player);
    player.hud_damagefeedback.horzAlign = "center";
    player.hud_damagefeedback.vertAlign = "middle";
    player.hud_damagefeedback.x = -12;
    player.hud_damagefeedback.y = -12;
    player.hud_damagefeedback.alpha = 0;
    player.hud_damagefeedback.archived = true;
    player.hud_damagefeedback setShader("damage_feedback", 24, 48);
    }
    }
    updateDamageFeedback( typeHit )
    {
    if ( !isPlayer( self ) )
    return;

    x = -12;
    y = -12;

    if ( getDvarInt( "camera_thirdPerson" ) )
    yOffset = self GetThirdPersonCrosshairOffset() * 240;
    else
    yOffset = getdvarfloat( "cg_crosshairVerticalOffset" ) * 240;

    if ( level.splitscreen )
    yOffset *= 0.5;

    feedbackDurationOverride = 0;
    startAlpha = 1;

    if ( typeHit == "hitBodyArmor" )
    {
    // self.hud_damagefeedback setShader("damage_feedback_j", 24, 48);
    // self playlocalsound("MP_hit_alert"); // TODO: change sound?
    return;
    }
    else if ( typeHit == "hitEndGame" )
    {
    // self.hud_damagefeedback setShader("damage_feedback_endgame", 24, 48);
    // self playlocalsound("MP_hit_alert");
    return;
    }
    else if ( typeHit == "stun" )
    {
    return;
    }
    else if ( typeHit == "none" )
    {
    return;
    }
    else if ( typeHit == "scavenger" && !level.hardcoreMode )
    {
    // x = -36;
    // y = 32;
    // self.hud_damagefeedback setShader("scavenger_pickup", 64, 32);
    // feedbackDurationOverride = 2.5;
    return;
    }
    else
    {
    // self.hud_damagefeedback setShader("damage_feedback", 24, 48);
    // self playlocalsound("MP_hit_alert");
    return;
    }

    //self.hud_damagefeedback.alpha = startAlpha;
    //if ( feedBackDurationOverride != 0 )
    // self.hud_damagefeedback fadeOverTime(feedbackDurationOverride);
    //else
    // self.hud_damagefeedback fadeOverTime(1);
    //
    //self.hud_damagefeedback.alpha = 0;

    // only update hudelem positioning when necessary
    //if ( self.hud_damagefeedback.x != x )
    // self.hud_damagefeedback.x = x;
    //
    //y = y - int( yOffset );
    //if ( self.hud_damagefeedback.y != y )
    // self.hud_damagefeedback.y = y;
    }
    Last edited by Insane; 08-20-2010 at 02:58 PM.
    Insane
    Ex Middleman
    [
    PM|VM]
    |x|x|x|x|x|x|x|



    Quote Originally Posted by Boombox View Post
    Shut the fuck up insane you pussy bitch.
    Quote Originally Posted by arunforce View Post
    Shut the fuck up kid, everything that comes out of your mouth sounds retarded as fuck.

  2. #2
    Josephlittle™'s Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    GSC Modding Section
    Posts
    1,345
    Reputation
    26
    Thanks
    560
    My Mood
    Devilish
    lol, Azumikkel already did something like this but good job anyways i guess?

  3. #3
    Insane's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    9,055
    Reputation
    1007
    Thanks
    1,997
    Quote Originally Posted by Josephlittle™ View Post
    lol, Azumikkel already did something like this but good job anyways i guess?
    Oh he did?
    Well give me the link and IF you are right then I request close / delete
    Insane
    Ex Middleman
    [
    PM|VM]
    |x|x|x|x|x|x|x|



    Quote Originally Posted by Boombox View Post
    Shut the fuck up insane you pussy bitch.
    Quote Originally Posted by arunforce View Post
    Shut the fuck up kid, everything that comes out of your mouth sounds retarded as fuck.

  4. #4
    iFireLazers's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    264
    Reputation
    18
    Thanks
    868
    My Mood
    Amused
    I posted this some days ago together with Realism Mod (made by AgentGOD). he did it with a clean way: replace the entire updateDamageFeedback function with this:
    [php]updateDamageFeedback( typeHit )
    {
    return;
    }[/php]

    EDIT: Also funny how the onPlayerConnect does not contain any endon disconnect stuff (original IW codens).

  5. #5
    Insane's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    9,055
    Reputation
    1007
    Thanks
    1,997
    Quote Originally Posted by iFireLazers View Post
    I posted this some days ago together with Realism Mod (made by AgentGOD). he did it with a clean way: replace the entire updateDamageFeedback function with this:
    [php]updateDamageFeedback( typeHit )
    {
    return;
    }[/php]

    EDIT: Also funny how the onPlayerConnect does not contain any endon disconnect stuff (original IW codens).
    Well I didn't make this
    Insane
    Ex Middleman
    [
    PM|VM]
    |x|x|x|x|x|x|x|



    Quote Originally Posted by Boombox View Post
    Shut the fuck up insane you pussy bitch.
    Quote Originally Posted by arunforce View Post
    Shut the fuck up kid, everything that comes out of your mouth sounds retarded as fuck.

Similar Threads

  1. [Solved]How disable Hitmarker??
    By jul920 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 3
    Last Post: 10-10-2010, 04:02 AM
  2. Disable Warrock update :)
    By jonny121 in forum WarRock - International Hacks
    Replies: 7
    Last Post: 02-23-2007, 10:12 AM
  3. Disable some of punkbuster's functions.
    By System79 in forum Game Hacking Tutorials
    Replies: 3
    Last Post: 09-07-2006, 12:32 AM
  4. What hacks got disabled by new patch?
    By wafflele in forum WarRock - International Hacks
    Replies: 4
    Last Post: 08-27-2006, 05:25 AM
  5. Does it realy work (pb disabler)
    By jeremywilms in forum WarRock - International Hacks
    Replies: 6
    Last Post: 06-13-2006, 12:43 PM