Raised This Month: $ Target: $400
 0% 

Solved Glitched Audio


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 07-17-2018 , 12:40   Re: Glitched Audio
Reply With Quote #1

Quote:
Originally Posted by HamletEagle View Post
Use a global array like bLanded[33].
Yeah, that should work.
PHP Code:
new bool:g_bLanded;

bool:LandedOnGroundiIndex 

    if( 
peviIndexpev_flags ) & FL_ONGROUND )
    { 
        if( ! 
g_bLanded )
        
g_bLanded true;
    } 
    return 
g_bLanded;

I'll test and inform you whether the sounds work properly now, they have no reason to not work now.
__________________

Last edited by edon1337; 07-17-2018 at 13:13.
edon1337 is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 07-17-2018 , 13:14   Re: Glitched Audio
Reply With Quote #2

Quote:
Originally Posted by HamletEagle View Post
Use a global array like bLanded[33].
Still gets spammed :/
__________________
edon1337 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-17-2018 , 13:21   Re: Glitched Audio
Reply With Quote #3

That's not what I told you to do. If you return g_bLanded you will ALWAYS return true, which is useless. Just do the check directly in the think function.
__________________

Last edited by HamletEagle; 07-17-2018 at 13:21.
HamletEagle is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 07-17-2018 , 14:36   Re: Glitched Audio
Reply With Quote #4

Quote:
Originally Posted by HamletEagle View Post
That's not what I told you to do. If you return g_bLanded you will ALWAYS return true, which is useless. Just do the check directly in the think function.
I'm doing this for an entity, can I use pev_iuser2 instead?
__________________
edon1337 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-17-2018 , 14:49   Re: Glitched Audio
Reply With Quote #5

Yes.
__________________
HamletEagle is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 07-17-2018 , 15:02   Re: Glitched Audio
Reply With Quote #6

Quote:
Originally Posted by HamletEagle View Post
Yes.
Thanks for your efforts, Hamlet.
__________________
edon1337 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:40.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode