Raised This Month: $ Target: $400
 0% 

Shot event (Method)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 07-28-2013 , 10:45   Re: Shot event (Method)
Reply With Quote #1

Quote:
Originally Posted by ConnorMcLeod View Post
But you have more code to proceed in callback.
With VEN's method, you don't need to call any native in order to filter shots.

Difference is trivial, but there is still some ;)
Thanks for info, with this code when i scope a AWP with zoom, the curweapon its being called, because the 3rd paramter counting zero.

If i change to "3 > 0" it not count last shot (Ex. if i fired 30 bullets its only counting 29)

Its possible to resolve this small problem to use 0 ?
(It That would solve the problem of aim scope from some weapons)
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-28-2013 , 11:17   Re: Shot event (Method)
Reply With Quote #2

Should check if m_iClip != m_iClientClip but again it would add 2 native calls.

Edit :

Or change :

(g_iLastAmmo[id] > iAmmo

to

(g_iLastAmmo[id] >= iAmmo
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 07-28-2013 at 11:20.
ConnorMcLeod is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 07-28-2013 , 14:23   Re: Shot event (Method)
Reply With Quote #3

Quote:
Originally Posted by ConnorMcLeod View Post
Should check if m_iClip != m_iClientClip but again it would add 2 native calls.

Edit :

Or change :

(g_iLastAmmo[id] > iAmmo

to

(g_iLastAmmo[id] >= iAmmo
And use with 3>0 ?

Ok, i will try.
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-28-2013 , 15:42   Re: Shot event (Method)
Reply With Quote #4

No because you need to catch when 3 == 0
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 07-30-2013 , 00:10   Re: Shot event (Method)
Reply With Quote #5

Quote:
Originally Posted by ConnorMcLeod View Post
No because you need to catch when 3 == 0
Anyway is working, solved

EDIT:

Other problem, i need to catch when player is playing on theese situations with another users:

1v1, 1v2, 1v3, 1v4, 1v5

Example > In a round, stay 1 TR vs others 5 .. 4 .. 3 ... 2 ... 1 etc.
And if the TR win against others CTs, increase a global variable to this.a
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

Last edited by ^SmileY; 07-30-2013 at 00:13.
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
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 15:52.


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