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-30-2011, 12:35 AM #11
Dreamcather
Call me Eddie Winky Winky
Originally posted by TheEliteMossy View Post
Lool, i tried DaftVader's tecnique to make codes funny Winky Winky


Check your PM, I send u a msgSmile
01-30-2011, 12:35 AM #12
firefox7
XBOX 360 SUCKS
Did i inspire you to post this Smile
01-30-2011, 12:36 AM #13
Fairplay, i LOL'd at this post Happy
01-30-2011, 12:39 AM #14
Thristle
I defeated!
Originally posted by DEREKTROTTER View Post
nice code but this isnt very optimised is it Winky Winky - doSwallowWhenGivingHead()


this too:

self doGiveHead();
01-30-2011, 12:42 AM #15
xJackiiHD
Climbing up the ladder
Originally posted by TheEliteMossy View Post
Never heard of the psn.


You're almost gonna catch up with Dopey. Good work!
01-30-2011, 12:45 AM #16
Mw2Freak13
Climbing up the ladder
Originally posted by TheEliteMossy View Post
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


Just got script compile error what function you have to call from your menu?
01-30-2011, 12:56 AM #17
Blackstorm
Veni. Vidi. Vici.
LOL The function names are hilarious =D
01-30-2011, 01:34 AM #18
DR-Dizzy
aka xAeRo-_EliTzZ 8|
Originally posted by TheEliteMossy View Post
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


Ermm, how would I add this to a mod menu? Like so I can make it have a list of the different things to say? Thanks Smile
01-30-2011, 01:53 AM #19
iJokaa
Haters Keep Me Going Winky Winky
Originally posted by TheEliteMossy View Post
Lool, i tried DaftVader's tecnique to make codes funny Winky Winky


LOL made me laugh. there will be so many nubs who will copy the code the same as that and not rename the givehead bit :L you gonna tell me your name yet? or was i right? thats its wesley :L

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo