Raised This Month: $ Target: $400
 0% 

CurWeapon jitter


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 07-17-2007 , 18:19   Re: CurWeapon jitter
Reply With Quote #1

Quote:
Originally Posted by connorr View Post
Replace

client_cmd(id, "weapon_knife")

by

engclient_cmd(id, "weapon_knife")
how much cpu is this gonna save?

ones through cmd and ones through client's engine or something right?
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME
kp_uparrow is offline
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 07-17-2007 , 19:18   Re: CurWeapon jitter
Reply With Quote #2

Ya, the example code was just hand typed in and is not the actual code I'm using. Its just a representation for my question.

The whole point isn't the code itself. The point is, that a few players in the game are able to exploit/circumvent the CurWeapon event by quickly switching weapons back and forth with invprev, or continually pressing a gun key.

Quote:
Originally Posted by kp_uparrow View Post
curweapon doesnt catch all when the switch really fast
I think you understand what I'm getting at. So if what you say is true, that the CurWeapon event doesn't catch all, then what good is it? And why are only a few players, not everyone, able to do it?
__________________
=====================================
- My Plugins -
=====================================

Last edited by Vet; 07-18-2007 at 00:47.
Vet is offline
Send a message via MSN to Vet
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 07-18-2007 , 11:35   Re: CurWeapon jitter
Reply With Quote #3

Quote:
Originally Posted by kp_uparrow View Post
how much cpu is this gonna save?

ones through cmd and ones through client's engine or something right?
That not the point of engclient_cmd. It goes threw the engine without going to the client. Ie. Bots.

If you try to use client_cmd on bots this command will not work. You need to use engclient_cmd.

If you use client_cmd for real players it take the time to send to the client. Then the client send that command back to the server. Which is where people have enough time to quick switch back.

If you do not want them to be able to quick switch back. It necessary to use engclient_cmd. I use this method to force people to use knife in cs 1.6. When it was only client_cmd. I was able to quick switch to nade etc. Prim the grenade.
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 07-18-2007 , 23:17   Re: CurWeapon jitter
Reply With Quote #4

There's the answer I've been looking for. Thanks!
__________________
=====================================
- My Plugins -
=====================================
Vet is offline
Send a message via MSN to Vet
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 21:30.


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