Raised This Month: $32 Target: $400
 8% 

Solved OnPlayerRunCmd() still triggered whether or not client pressed button


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
little_froy
Senior Member
Join Date: May 2021
Old 07-24-2021 , 22:00   OnPlayerRunCmd() still triggered whether or not client pressed button
Reply With Quote #1

in l4d2, is it normal of the API, or just a special case of l4d2?
-----------------------------------------------------------------------
test in team fortress 2, make sure it triggers every tick.

Last edited by little_froy; 07-24-2021 at 22:23.
little_froy is offline
SpirT
Senior Member
Join Date: Sep 2018
Location: Portugal
Old 07-29-2021 , 10:58   Re: OnPlayerRunCmd() still triggered whether or not client pressed button
Reply With Quote #2

Hey! Try using OnClientCommand() instead
__________________
SpirT is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 07-29-2021 , 16:04   Re: OnPlayerRunCmd() still triggered whether or not client pressed button
Reply With Quote #3

Quote:
Originally Posted by SpirT View Post
Hey! Try using OnClientCommand() instead
That has nothing to do with his question. He’s asking if it’s normal for OnPlayerRunCmd() to keep firing even when clients aren’t pressing anything.

The answer is yes.
__________________
Psyk0tik is offline
SpirT
Senior Member
Join Date: Sep 2018
Location: Portugal
Old 07-30-2021 , 06:15   Re: OnPlayerRunCmd() still triggered whether or not client pressed button
Reply With Quote #4

Quote:
Originally Posted by Crasher_3637 View Post
That has nothing to do with his question. He’s asking if it’s normal for OnPlayerRunCmd() to keep firing even when clients aren’t pressing anything.

The answer is yes.
Ohh my bad, as I read the title, I thought the problem was that OnPlayerRunCmd was being triggered always.
__________________
SpirT is offline
Reply


Thread Tools
Display Modes

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 13:45.


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