Raised This Month: $105 Target: $400
 26% 

[CSS] HardCoreFriendlyFire


Post New Thread Reply   
 
Thread Tools Display Modes
Author
javalia
Senior Member
Join Date: May 2009
Location: korea, republic of
Plugin ID:
3408
Plugin Version:
1.0.0.0
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    plugin for friendly fire damage and FFA game
    Old 12-11-2012 , 19:39   [CSS] HardCoreFriendlyFire
    Reply With Quote #1

    <HardCoreFriendlyFire>



    Introdution
    there is few plugins that r changing friendly fire damage or changing game into FFA.
    but, this plugin has few different points in it`s code.
    this plugin changes player`s team when they r attacked by teammates,
    so damage will correctly calculated by game.
    not like other FF damage change plugins that r just simply changing damage to teammates by multiplying some values to damage.
    so u can expect this plugin will work better with other plugin/maps that r making players deal dmg to teammates.

    however, this plugin can make side effect to plugins that r having code related to OnTakeDamage function and player_death and player_hurt event.

    and, if u want to hide friendly fire warning msg in chat area, i recommand this plugin to be used together. https://forums.alliedmods.net/showth...19#post1852319

    this plugin has bug related with round end msg of css. because game actually thinks u attacked enemy, not your teammate. but its not a critical thing...



    Requirements

    this plugin needs the things listed below to work:
    • SDKHooks



    Installation

    to install this plugin
    • put the smx file in the sourcemod/plugins folder
    to compile this plugin manually
    • put sp file in the sourcemod/scripting folder
    • compile.



    Configuration

    cvarlist for this version
    Code:
    // This file was auto-generated by SourceMod (v1.5.0-dev+3697)
    // ConVars for plugin "HardCoreFriendlyFire.smx"
    
    
    // enables FFA mode
    // -
    // Default: "0"
    HardCoreFriendlyFire_freeforall "0"
    Special Thanks To

    i want to say thanks to these guys
    • someone whom will get interested on my plugin and use this.



    Change Log

    all the date`s format is y/m/d
    Code:
    update at 2012 12 12(ver 1.0.0.0) 
    
    • released
    Attached Files
    File Type: sp Get Plugin or Get Source (HardCoreFriendlyFire.sp - 207 views - 3.7 KB)
    File Type: smx HardCoreFriendlyFire.smx (3.9 KB, 237 views)
    __________________

    Last edited by alongub; 02-19-2013 at 15:55.
    javalia is offline
    Guren
    Senior Member
    Join Date: Feb 2011
    Location: Equestria, Ponyville
    Old 12-15-2012 , 11:59   Re: [CSS] HardCoreFriendlyFire
    Reply With Quote #2

    Genius.
    __________________

    Nick : Chamamyungsu // Korean Brony
    Guren is offline
    alongub
    Veteran Member
    Join Date: Aug 2009
    Location: Israel
    Old 02-19-2013 , 15:54   Re: [CSS] HardCoreFriendlyFire
    Reply With Quote #3

    Cache cvars instead of using GetConVarBool in event hooks.

    You can also rewrite

    Code:
    stock bool:isClientConnectedIngameAlive(client){
    	
    	if(isClientConnectedIngame(client)){
    		
    		if(IsPlayerAlive(client) == true && IsClientObserver(client) == false){
    			
    			return true;
    			
    		}else{
    			
    			return false;
    			
    		}
    		
    	}else{
    		
    		return false;
    		
    	}
    	
    }
    As

    Code:
    stock bool:isClientConnectedIngameAlive(client) {
    	if (!isClientConnectedIngame(client))
    		return false;
    
    	return (IsPlayerAlive(client) == true && IsClientObserver(client) == false);	
    }
    Same for isClientConnectedIngame.
    __________________

    Last edited by alongub; 02-19-2013 at 15:54.
    alongub is offline
    zeroibis
    Veteran Member
    Join Date: Jun 2007
    Old 03-28-2013 , 17:04   Re: [CSS] HardCoreFriendlyFire
    Reply With Quote #4

    When trying to compile I get:
    SourcePawn Compiler 1.4.2-dev
    Copyright (c) 1997-2006, ITB CompuPhase, (C)2004-2008 AlliedModders, LLC

    G:\Sm Plugins\HardCoreFriendlyFire\HardCoreFriendly Fire.sp(45) : error 100: function prototypes do not match
    G:\Sm Plugins\HardCoreFriendlyFire\HardCoreFriendly Fire.sp(46) : error 100: function prototypes do not match
    G:\Sm Plugins\HardCoreFriendlyFire\HardCoreFriendly Fire.sp(10 : error 017: undefined symbol "SDKHooks_TakeDamage"

    3 Errors.

    Compilation Time: 0.17 sec
    __________________
    zeroibis is offline
    zeroibis
    Veteran Member
    Join Date: Jun 2007
    Old 03-29-2013 , 02:20   Re: [CSS] HardCoreFriendlyFire
    Reply With Quote #5

    It compiled when I used a newer version of SDKHOOKS.
    __________________
    zeroibis is offline
    Reply


    Thread Tools
    Display Modes

    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 23:44.


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