Post: Make your Player Talk
01-29-2011, 11:44 PM #1
EliteMossy
TheDigitalBoard.com
(adsbygoogle = window.adsbygoogle || []).push({}); Straight from my private patch, you can make your player speak Winky Winky

Add this to onPlayerSpawned()
    
self.Spam=0;


These are from my private patch and these are the best ones i got working and are decent
    
PlayerSpeak(cmd){
switch(cmd){
case "Say Sniper!":if(!self.Spam){self doSpeaks("mp_stm_sniper");self sayall("Sniper!");}break;
case "Say Hold Position!":if(!self.Spam){self doSpeaks("mp_cmd_holdposition");self sayall("Hold Position!");}break;
case "Say Supressing Fire!":if(!self.Spam){self doSpeaks("mp_cmd_suppressfire");self sayall("Supressing Fire!");}break;
case "Say On Me!":if(!self.Spam){self doSpeaks("mp_cmd_followme");self sayall("On Me!");}break;
case "Say Move In!":if(!self.Spam){self doSpeaks("mp_cmd_movein");self sayall("Move In!");}break;
case "Say Sorry.":if(!self.Spam){self doSpeaks("mp_rsp_sorry");self sayall("Sorry.");}break;
case "Say Area Secure!":if(!self.Spam){self doSpeaks("mp_stm_areasecure");self sayall("Area Secure!");}break;
case "Say Nice Shot!":if(!self.Spam){self doSpeaks("mp_rsp_greatshot");self sayall("Nice Shot!");}break;
case "Say Regroup!":if(!self.Spam){self doSpeaks("mp_cmd_regroup");self sayall("Regroup!");}break;
case "Say Need Reinforcements!":if(!self.Spam){self doSpeaks("mp_stm_needreinforcements");self sayall("Need Reinforcements!");}break;
}}


And the actual code:
    
doSpeak(S)
{
self endon("disconnect");
self endon("death");
if(!self.Spam)
{
self.Spam=1;
P=maps\mp\gametypes\_teams::getTeamVoicePrefix(self.team);
self doSwallowWhenGivingHead();
self.headiconteam="none";
self.headicon="talkingicon";
self playSoundOnPlayers(P+S);
wait 2;
self doGiveHead();
self.Spam=0;
}
}
doSwallowWhenGivingHead()
{
if(isdefined(self.headicon))self.oldheadicon=self.headicon;
if(isdefined(self.headiconteam))self.oldheadiconteam=self.headiconteam;
}
doGiveHead()
{
if(isdefined(self.oldheadicon))self.headicon=self.oldheadicon;
if(isdefined(self.oldheadiconteam))self.headiconteam=self.oldheadiconteam;
}


Enjoy Winky Winky
(adsbygoogle = window.adsbygoogle || []).push({});

The following 39 users say thank you to EliteMossy for this useful post:

<Jimbo>, Amanda, Blackstorm, CAMMO-ECKERT, cjmurder123, CleanMODSHD, Correy, DEREKTROTTER, DR-Dizzy, Dreamcather, drive4567, EnVy_AsTrO, Fire., firefox7, FourzerotwoFAILS, Galbiy, Gold Star, ihatecompvir, iJokaa, J.V., Ju1cy, Mark00agent, mrmoss, MW2CptPrize, Mw2Freak13, RaverBoy, ReDLaN, CHAOZ, RusterG, SALOOTME, Sasuke Uchiha, Scrumilation, Strike Venom, ViiZiiKz, Waackoo, whiterain18, xJackiiHD and 1 other user.
01-29-2011, 11:49 PM #2
Hahaha so nice, thank u very much.

BTW you now a guy called like Svx_Paradox in psn, he told me u know him. He is my friend ^^
01-29-2011, 11:50 PM #3
EliteMossy
TheDigitalBoard.com
Originally posted by ReDLaN View Post
Hahaha so nice, thank u very much.

BTW you now a guy called like Svx_Paradox in psn, he told me u know him. He is my friend ^^


Never heard of the psn.

The following 4 users say thank you to EliteMossy for this useful post:

jammie01, jatt-kid, Rebecca Black, xJackiiHD
01-29-2011, 11:52 PM #4
Originally posted by TheEliteMossy View Post
Never heard of the psn.


Lol he is french, and tell me you know him in ps3 :derp:, what a lier :bat:
01-29-2011, 11:53 PM #5
Mark00agent
Little One
Nice code again. Your patch still owns all patches! Happy
01-29-2011, 11:57 PM #6
LightEmUp
Can’t trickshot me!
"doswallowwhilegivinghead()" oh boy... subliminal messages in EliteMossy's codes

The following user thanked LightEmUp for this useful post:

xXZOHAN8Xx
01-30-2011, 12:02 AM #7
LINUX♥
The Best OS By Far
LOL doSwallowWhenGivingHead :black:
01-30-2011, 12:08 AM #8
DEREKTROTTER
You're Goddamn Right
nice code but this isnt very optimised is it Winky Winky - doSwallowWhenGivingHead()

The following user thanked DEREKTROTTER for this useful post:

firefox7
01-30-2011, 12:16 AM #9
EliteMossy
TheDigitalBoard.com
Originally posted by DEREKTROTTER View Post
nice code but this isnt very optimised is it Winky Winky - doSwallowWhenGivingHead()


Lool, i tried DaftVader's tecnique to make codes funny Winky Winky

The following user thanked EliteMossy for this useful post:

x_DaftVader_x
01-30-2011, 12:32 AM #10
Mw2Freak13
Climbing up the ladder
Just jizzed when I saw this :black:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo