+ Reply to Thread
Results 1 to 2 of 2

Thread: [C++]Round Say

  1. #1
    Senior 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.

    PHP Code:

    #define FIND_FUNCTION( s )    ( UFunction* )UFunction::StaticFindObject( UFunction::StaticClass(), NULL, TEXT( s ), NULL )
    bool bExecuteRoundStart;

    void doRoundSay()
    {
                       
    UFunctionpConsoleCommand FIND_FUNCTION("Engine.PlayerController.ConsoleCommand");
        
    APlayerController_execConsoleCommand_Parms Parms;
        
    Parms.Command L"say eNTHook, Coded by [uB]Nightmare @ www.unrealbot.com";
        
    pPlayerController->ProcessEventpConsoleCommand, &ParmsNULL );

    in your post render

    PHP Code:
        if ( !pPlayerController )
                return;
        if ( !
    bExecuteRoundStart 
            
    && pPlayerController 
            
    && ( pPlayerController->IsInStateFNameTEXT"RoundEnded" ) ) ) || pPlayerController->IsInStateFNameTEXT"GameEnded" ) ) ) ) )
            
    bExecuteRoundStart true
    Currently deployed in support of OEF XI-XII

  2. #2
    Junior Member
    Join Date
    Jun 2009
    Posts
    16
    Thx NM - awesome work!


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts