Raised This Month: $51 Target: $400
 12% 

[REQ] Remove blood csgo


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
cristi_ip
Senior Member
Join Date: Dec 2010
Location: Bucharest
Old 11-30-2015 , 04:46   [REQ] Remove blood csgo
Reply With Quote #1

Hello,

Can anyone help me with a plugin to remove blood in csgo ?

Thank you in advanced!
cristi_ip is offline
h3bus
AlliedModders Donor
Join Date: Nov 2013
Old 11-30-2015 , 08:57   Re: [REQ] Remove blood csgo
Reply With Quote #2

Not tested (extracted from my DM plugin)
Needs an 1.6 compiler I think.

PHP Code:
#include <sourcemod>
#include <sdktools>
#pragma semicolon 1

#define VERSION "0.1.0"

public Plugin:myinfo =
{
    
name "No blood",
    
author "H3bus",
    
description "Disable blood",
    
version VERSION,
    
url "http://www.sourcemod.net/"
};

static 
g_iUtils_EffectDispatchTable;
static 
g_iUtils_DecalPrecacheTable;

public 
APLRes:AskPluginLoad2(Handle:myselfbool:lateString:error[], err_max)
{
    
decl String:gamedir[PLATFORM_MAX_PATH];
    
GetGameFolderName(gamedirsizeof(gamedir));
    if( 
strcmp(gamedir"csgo") != 0)
    {
        
strcopy(errorerr_max"This plugin is only supported on CSGO");
        return 
APLRes_Failure;
    }
    
    return 
APLRes_Success;
}

public 
OnPluginStart()
{
    
AddTempEntHook("EffectDispatch"TE_OnEffectDispatch);
    
AddTempEntHook("World Decal"TE_OnDecal);
    
AddTempEntHook("Entity Decal"TE_OnDecal);
}

public 
OnMapStart()
{
    
g_iUtils_EffectDispatchTable FindStringTable("EffectDispatch");
    
g_iUtils_DecalPrecacheTable  FindStringTable("decalprecache");
}

public 
Action:TE_OnEffectDispatch(const String:te_name[], const Players[], numClientsFloat:delay)
{
    new 
iEffectIndex TE_ReadNum("m_iEffectName");
    
decl String:sEffectName[9];
    
    
ReadStringTable(g_iUtils_EffectDispatchTableiEffectIndexsEffectNamesizeof(sEffectName));
    
    if(
StrEqual(sEffectName"csblood"))
        return 
Plugin_Handled;

    return 
Plugin_Continue;
}

public 
Action:TE_OnDecal(const String:te_name[], const Players[], numClientsFloat:delay)
{
    new 
nIndex TE_ReadNum("m_nIndex");
    
decl String:sDecalName[13];

    
ReadStringTable(g_iUtils_DecalPrecacheTablenIndexsDecalNamesizeof(sDecalName));
        
    if(
StrEqual(sDecalName"decals/blood"))
        return 
Plugin_Handled;
    
    return 
Plugin_Continue;


Last edited by h3bus; 11-30-2015 at 11:15.
h3bus is offline
asdfxD
Veteran Member
Join Date: Apr 2011
Old 11-30-2015 , 09:16   Re: [REQ] Remove blood csgo
Reply With Quote #3

Quote:
//// blood.sp
// blood.sp(33) : error 017: undefined symbol "AddTempEntHook"
// blood.sp(34) : error 017: undefined symbol "AddTempEntHook"
// blood.sp(35) : error 017: undefined symbol "AddTempEntHook"
// blood.sp(40) : error 017: undefined symbol "FindStringTable"
// blood.sp(41) : error 017: undefined symbol "FindStringTable"
// blood.sp(46) : error 017: undefined symbol "TE_ReadNum"
// blood.sp(49) : error 017: undefined symbol "ReadStringTable"
// blood.sp(49) : error 092: number of arguments does not match definition
// blood.sp(59) : error 017: undefined symbol "TE_ReadNum"
// blood.sp(62) : error 017: undefined symbol "ReadStringTable"
// blood.sp(62) : error 092: number of arguments does not match definition
//
// 11 Errors.
//
// Compilation Time: 0,09 sec
damn.

no blood is good for awp_lego and aim_redline deathmatch.

Last edited by asdfxD; 11-30-2015 at 09:17.
asdfxD is offline
h3bus
AlliedModders Donor
Join Date: Nov 2013
Old 11-30-2015 , 11:16   Re: [REQ] Remove blood csgo
Reply With Quote #4

Forgot an include, this is fixed.

At least spider compiles it.
h3bus is offline
cristi_ip
Senior Member
Join Date: Dec 2010
Location: Bucharest
Old 11-30-2015 , 12:06   Re: [REQ] Remove blood csgo
Reply With Quote #5

Working great, thank you very much h3bus!
cristi_ip is offline
FlippeR1923
Junior Member
Join Date: Oct 2016
Old 11-05-2016 , 11:54   Re: [REQ] Remove blood csgo
Reply With Quote #6

somme erors on compiler kan you compile this plugin for me ?

Last edited by FlippeR1923; 11-05-2016 at 11:55.
FlippeR1923 is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 11-05-2016 , 12:13   Re: [REQ] Remove blood csgo
Reply With Quote #7

maybe take a look here: https://forums.alliedmods.net/showthread.php?p=2420561
__________________
coding & free software
shanapu is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:49.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode