Raised This Month: $ Target: $400
 0% 

[CS:GO] Retakes (v0.3.2, 2016-4-6)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
BoosterGold
Member
Join Date: Nov 2016
Old 02-13-2017 , 00:52   Re: [CS:GO] Retakes (v0.3.2, 2016-4-6)
Reply With Quote #11

Hey Splewis, I've added some code to try to play a VO sound when the round begins. The script compiles but the sound isn't played to the clients. I'm a pretty new scripter, have I formatted the if statement wrong?

Code:
public Action Event_RoundPostStart(Handle event, const char[] name, bool dontBroadcast) {
    if (!Retakes_Live()) {
        return;
    }

    if (!g_EditMode) {
        GameRules_SetProp("m_iRoundTime", g_hRoundTime.IntValue, 4, 0, true);
        Retakes_MessageToAll("%t", "RetakeSiteMessage", SITESTRING(g_Bombsite), g_NumT, g_NumCT);
    }

    g_bombPlanted = false;
	
    if (g_Bombsite == BombsiteA) {
        EmitSoundToAll("player/vo/phoenix/goingtoplantbomba02.wav");
    }
    if (g_Bombsite == BombsiteB) {
        EmitSoundToAll("player/vo/phoenix/goingtoplantbombb01.wav");
    }
}

Last edited by BoosterGold; 02-13-2017 at 00:53.
BoosterGold is offline
 



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 00:16.


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