Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: [HELP!!!]Some questions

  1. #11

    Default

    Forget what I said. I used client_PostThink() forward without including <engine> so it was never called.
    Anyway, to avoid calling it many times per second (client_PostThink()), you should probably hook FM_EmitSound and do a swoop sound check. If true - set swoop time.

    (I've also slightly altered the above code for "User Message Test", as it apparently caused the server to hang for a few seconds.)
    Last edited by hleV; Jul 22nd, 2015 at 12:55 PM.
    Quote Originally Posted by Sting View Post
    How can yours be so much bigger then mine??

  2. #12

  3. #13
    The only Russian ESF fan ><((('>'s Avatar
    Join Date
    Dec 2012
    Posts
    194
    IM
     


    Default

    4. I'd like to make more stories in the ESF, so please let me know if these words are as genuine as an English speaker:
    Vegeta: hehehe...I know how do I do to kill you! Only blow you to pieces can kill you!
    Buu: en? emmm?....
    Vegeta: Good-Bye, Bulma, Trunks.. and Kakarot...
    Buu: awwwwww....
    Vegeta: Haaaa~~~ BOMB!
    Please. Just don't.
    [S2k]eVans

  4. #14

    Default

    Code:
    public ClientPreThink( Client )
    {
    	if ( !is_user_connected( Client ) )
    		return FMRES_IGNORED;
    		
    	if( getClientSWOOPING( Client ) && Swoopdirection[Client] != getClientSWOOPDIRECTION( Client ) )
    	{
    		Swoopdirection[Client] = getClientSWOOPDIRECTION( Client );
    		setPlayerSWOOPTIME(Client);
    	}
    	
    	if(getClientSWOOPING(Client) && getClientKI(Client) <= 10)
    	{
    		setClientSWOOPTIME(Client, Float:0 );
    	}
    	
    	else if( !getClientSWOOPING( Client ) && Swoopdirection[Client] != SWOOP_NONE )
    	{	
    		Swoopdirection[Client] = SWOOP_NONE;
    	}	
    	return FMRES_IGNORED;
    }
    
    setPlayerSWOOPTIME(Client)
    {
    	setClientSWOOPTIME(Client,get_gametime() + 10.0);
    }
    You can try this.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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