Raised This Month: $182 Target: $400
 45% 

[CSS] Voice Radio(updated at 2011 12 20)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
javalia
Senior Member
Join Date: May 2009
Location: korea, republic of
Plugin ID:
2063
Plugin Version:
1.0.4.29
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    2 
    Plugin Description:
    makes human players to use voice as thier radio like bots
    Old 11-10-2010 , 14:25   [CSS] Voice Radio(updated at 2011 12 20)
    Reply With Quote #1

    <Voice Radio>




    Introdution

    this plugin will make human players to use voice as their radio like bots doing. and will make ff pain sound, death sound, blind scream sound.
    but these can disabled by options



    Requirements

    this plugin needs the things listed below to work:
    • nothing without SM and MM



    Installation

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



    Configuration

    to configurate this plugin to your likes
    • to use auto generated cfg file
      • run the plugin once, then the cfg will be generated in the cfg/sourcemod folder
      • take a look at the options and change them to your preferences
      • the options you choose in the cfg will be loaded on every map change
    • cvarlist for this version
    Code:
    // This file was auto-generated by SourceMod (v1.3.0-pdev)
    // ConVars for plugin "CSSVoiceRadio.smx"
    
    
    // 1/0 to enable/disable, blind scream
    // -
    // Default: "1"
    CSSVoiceRadio_BlindSound "1"
    
    // 1/0 to enable/disable
    // -
    // Default: "1"
    CSSVoiceRadio_DeathSound "1"
    
    // 1/0 to enable/disable, will player make pain sound when damaged by friend?
    // -
    // Default: "1"
    CSSVoiceRadio_FFPainSound "1"
    
    // 1/0 to enable/disable
    // -
    // Default: "1"
    CSSVoiceRadio_RadioText "1"
    if plugin has updated and it`s cfg file has changed, you should remove old one and regenerate cfg file



    Known Bugs & Limits Of the Mod

    Limits
    • this plugin will make few radio sound for bots too, but bot`s voice radio made by this plugin`s sound pitch will not same as pitch of bot`s original voice radio until bot makes it`s own voice radio at least once



    Special Thanks To

    i want to say thanks to these guys
    • hm......?????



    Change Log

    all the date`s format is y/m/d
    Code:
    update at 2011 12 20 (ver 1.0.4.29)
    
    • updated code to use cmdlistener instead of old regcmd things
    update at 2011 2 21 (ver 1.0.1.24)
    • fixed plugin to have radio cool time based on radio sound time
    update at 2011 2 21 (ver 1.0.1.23)
    • removed unused cvar CSSVoiceRadio_RadioCoolTime
    • corrected every radio sound time
    update at 2011 1 2 (ver 1.0.0.22)
    • fixed to not makes team hurt sound by self damage.
    • thanks for FrozDark
    update at 2010 11 13(ver 1.0.0.21)
    • fixed death sound by infect more
    update at 2010 11 13(ver 1.0.0.20)
    • added some code to work with zombiemods to make actual death sound when infected, not making ff pain sound
    update at 2010 11 11(ver 1.0.0.19)
    • fixed wrong radio sound of "get in position"
    update at 2010 11 11(ver 1.0.0.18)
    • now bots will not make FF pain sound by this plugin, cuz they always make FFpain sound automatically when they got hurt
    update at 2010 11 11(ver 1.0.0.17)
    • released
    Attached Files
    File Type: sp Get Plugin or Get Source (CSSVoiceRadio.sp - 348 views - 16.9 KB)
    File Type: smx CSSVoiceRadio.smx (9.1 KB, 256 views)
    File Type: inc stocklib.inc (42.1 KB, 257 views)
    __________________

    Last edited by javalia; 12-20-2011 at 01:48. Reason: updated
    javalia is offline
    -Absolute-
    Member
    Join Date: Mar 2010
    Old 11-10-2010 , 14:35   Re: [CSS] Voice Radio
    Reply With Quote #2

    Kinda useless but still cool somehow
    -Absolute- is offline
    javalia
    Senior Member
    Join Date: May 2009
    Location: korea, republic of
    Old 11-10-2010 , 16:11   Re: [CSS] Voice Radio
    Reply With Quote #3

    Quote:
    Originally Posted by -Absolute- View Post
    Kinda useless but still cool somehow
    lol yea lol
    __________________
    javalia is offline
    javalia
    Senior Member
    Join Date: May 2009
    Location: korea, republic of
    Old 11-11-2010 , 07:20   Re: [CSS] Voice Radio(updated at 2010 11 11)
    Reply With Quote #4

    updated.
    __________________
    javalia is offline
    javalia
    Senior Member
    Join Date: May 2009
    Location: korea, republic of
    Old 11-13-2010 , 06:56   Re: [CSS] Voice Radio(updated at 2010 11 13)
    Reply With Quote #5

    updated.
    __________________
    javalia is offline
    FrozDark
    BANNED
    Join Date: May 2010
    Location: Kazakhstan, Shymkent
    Old 12-04-2010 , 15:35   Re: [CSS] Voice Radio(updated at 2010 11 13)
    Reply With Quote #6

    Hi Javalia
    You forgot this (attacker != client at player_hurt event)

    Code:
    public Action:EventHurt(Handle:Event, const String:Name[], bool:Broadcast){
    
    	decl client, attacker, health;
    
    	/*
    	short 	 userid 	 player index who was hurt
    	short 	attacker 	player index who attacked
    	byte 	health 	remaining health points
    	byte 	armor 	remaining armor points
    	string 	weapon 	weapon name attacker used, if not the world
    	byte 	dmg_health 	damage done to health
    	byte 	dmg_armor 	damage done to armor
    	byte 	hitgroup 	hitgroup that was damaged 
    	*/
    	
    	client = GetClientOfUserId(GetEventInt(Event, "userid"));
    	attacker = GetClientOfUserId(GetEventInt(Event, "attacker"));
    	health = GetEventInt(Event, "health");
    	
    	new Float:nowtime = GetGameTime();
    	
    	
    	
    	//still alive, pain sound
    	if(health > 0){
    		
    		if(!IsFakeClient(client) && isClientConnectedIngame(attacker) && (GetClientTeam(attacker) == GetClientTeam(client)) && attacker != client && GetConVarBool(g_cvarFFPainSound) && g_fNextVoiceTime[client] < GetGameTime()){
    FrozDark is offline
    Send a message via Skype™ to FrozDark
    javalia
    Senior Member
    Join Date: May 2009
    Location: korea, republic of
    Old 01-02-2011 , 01:28   Re: [CSS] Voice Radio(updated at 2010 11 13)
    Reply With Quote #7

    updated, thanks for FrozDark
    __________________
    javalia is offline
    javalia
    Senior Member
    Join Date: May 2009
    Location: korea, republic of
    Old 02-21-2011 , 02:05   Re: [CSS] Voice Radio(updated at 2011 2 21)
    Reply With Quote #8

    updated.
    __________________
    javalia is offline
    Dr!fter
    The Salt Boss
    Join Date: Mar 2007
    Old 11-18-2011 , 12:52   Re: [CSS] Voice Radio(updated at 2011 2 21)
    Reply With Quote #9

    Cool plugin javalia!

    Some changes that should be made before I approve this.

    The version cvar should have the FCVAR_DONTRECORD flag so it doesn't create it in the config. Also, AddCommandListener should be used to register the radio commands. Everything else looks good!
    Dr!fter is offline
    javalia
    Senior Member
    Join Date: May 2009
    Location: korea, republic of
    Old 12-20-2011 , 01:49   Re: [CSS] Voice Radio(updated at 2011 12 20)
    Reply With Quote #10

    drifter, i updated code as u mentiond. anyway, i am still confused.
    is SM really not creating cvar on cfg file if that flag is setted on cvar?
    hehe.
    __________________
    javalia 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 09:14.


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