Results 1 to 5 of 5
  1. #1
    jul920's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    33
    Reputation
    10
    Thanks
    3
    My Mood
    Tired

    No Blood in the hud?

    For my mod, I don't want to see blood in the hud when I'm touch by a bullet or something like that

    Help me
    Last edited by jul920; 10-22-2010 at 09:31 PM.

  2. #2
    Lemon30's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    66
    Reputation
    10
    Thanks
    10
    My Mood
    Devilish
    setDvar("painVisionTriggerHealth", 0);

  3. #3
    jul920's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    33
    Reputation
    10
    Thanks
    3
    My Mood
    Tired
    doesn't work for me

  4. #4
    black iceee's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    79
    Reputation
    13
    Thanks
    109
    Quote Originally Posted by jul920 View Post
    doesn't work for me
    me either
    dunno why

  5. #5
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,308
    My Mood
    Breezy
    Have you tried self setClientDvar("painVisionTriggerHealth", 0);

    If that doesn't work, make a file named _damagefeedback.gsc in the same folder as _rank.gsc:
    Code:
    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?
    	}
    	else if ( typeHit == "hitEndGame" )
    	{
    		//self.hud_damagefeedback setShader("damage_feedback_endgame", 24, 48);
    		self playlocalsound("MP_hit_alert");
    	}
    	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;
    	}
    	else
    	{
    		//self.hud_damagefeedback setShader("damage_feedback", 24, 48);
    		self playlocalsound("MP_hit_alert");
    	}
    	
    	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;	
    }
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

Similar Threads

  1. Give me the HUD files.
    By Synchromanica in forum Combat Arms Mod Discussion
    Replies: 3
    Last Post: 01-31-2011, 08:42 PM
  2. [EVENT] Blood of the Fallen
    By Toshie in forum Soldier Front General
    Replies: 4
    Last Post: 10-22-2010, 05:02 PM
  3. Take out the hud from a mod
    By alistair4322 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 3
    Last Post: 09-04-2010, 10:31 AM
  4. [Request] The HUD from the teaser...
    By crazyxazuhn in forum Combat Arms Mod Discussion
    Replies: 12
    Last Post: 03-23-2010, 11:19 PM
  5. blood on the dance floor
    By Lostie in forum General
    Replies: 12
    Last Post: 07-24-2009, 04:38 AM