+ Reply to Thread
Results 1 to 2 of 2
Thread: [C++]Round Say
-
07-15-2009 06:14 PM #1Senior Member
- Join Date
- May 2008
- Posts
- 248
[C++]Round Say
Credits: uNrEaL for coming up with the proper checks for only doing it once per round.
Essentially it sends a message through your console to global say, the function sets your commotype to global, and then through console sends what you want to say. There are several more optimized ways to do this, I'm using several of the optimizations, but for the sake of time, I'm going to post it the way so you can copy paste it lol.
in your post renderPHP Code:
#define FIND_FUNCTION( s ) ( UFunction* )UFunction::StaticFindObject( UFunction::StaticClass(), NULL, TEXT( s ), NULL )
bool bExecuteRoundStart;
void doRoundSay()
{
UFunction* pConsoleCommand = FIND_FUNCTION("Engine.PlayerController.ConsoleCommand");
APlayerController_execConsoleCommand_Parms Parms;
Parms.Command = L"say eNTHook, Coded by [uB]Nightmare @ www.unrealbot.com";
pPlayerController->ProcessEvent( pConsoleCommand, &Parms, NULL );
}
PHP Code:if ( !pPlayerController )
return;
if ( !bExecuteRoundStart
&& pPlayerController
&& ( pPlayerController->IsInState( FName( TEXT( "RoundEnded" ) ) ) || pPlayerController->IsInState( FName( TEXT( "GameEnded" ) ) ) ) )
bExecuteRoundStart = true;
Currently deployed in support of OEF XI-XII
-
07-19-2009 12:39 PM #2Junior Member
- Join Date
- Jun 2009
- Posts
- 16
Thx NM -
awesome work!


LinkBack URL
About LinkBacks



Reply With Quote
