Raised This Month: $ Target: $400
 0% 

Crossing Events [SOLVED]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Nostrodamous
BANNED
Join Date: Oct 2006
Old 10-30-2006 , 23:50   Crossing Events [SOLVED]
Reply With Quote #1

i dont think this is important enough for the scripting help section , so i jsut wanna ask a question . does any body know the effects(or better yet the consequenses) of crossing to events together ? or rather , crossing a weapons event with a forward like pre-think? any ideas ?

Last edited by Nostrodamous; 11-02-2006 at 18:55.
Nostrodamous is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 10-31-2006 , 03:00   Re: Crossing Events
Reply With Quote #2

What do you mean? I don't get what you mean by "crossing" them.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
Nostrodamous
BANNED
Join Date: Oct 2006
Old 10-31-2006 , 03:19   Re: Crossing Events
Reply With Quote #3

"crossing events" , i registered a CurWeapon Event , and i registered a forward (pre think) , and i assigned them both the same function to handle the events and forward . so both my events and forward go through 1 function . it works but im not sure if theres some adverse side effects .
Nostrodamous is offline
sawce
The null pointer exception error and virtual machine bug
Join Date: Oct 2004
Old 10-31-2006 , 03:43   Re: Crossing Events
Reply With Quote #4

In that particular case it would work, since the first parameter is always forwarded as the ID.

However, remember that prethink is called once per server frame for every client connected...
sawce is offline
Nostrodamous
BANNED
Join Date: Oct 2006
Old 10-31-2006 , 04:10   Re: Crossing Events
Reply With Quote #5

yeah i know , i didnt want to use it but im blockign weapon fire for my new plugin (hopefully relased this week) . is there an easy way to block or pause client side animation ?
Nostrodamous is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 11-01-2006 , 03:52   Re: Crossing Events
Reply With Quote #6

Check the snippets/tutorials forums section.
VEN is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 11-01-2006 , 09:26   Re: Crossing Events
Reply With Quote #7

And this is so scripting related. Will move.
__________________
Brad is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 11-01-2006 , 16:58   Re: Crossing Events
Reply With Quote #8

Crossing events is alright, but combining one that happens every single frame and one that only happens occasionally is a waste.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Nostrodamous
BANNED
Join Date: Oct 2006
Old 11-01-2006 , 18:00   Re: Crossing Events
Reply With Quote #9

Quote:
Originally Posted by XxAvalanchexX View Post
Crossing events is alright, but combining one that happens every single frame and one that only happens occasionally is a waste.
ok , well , i un-hooked the weapon event and the forward . but what about having a pre-think and client update being hooked thru the same ev event?
Nostrodamous is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 11-01-2006 , 21:14   Re: Crossing Events
Reply With Quote #10

I don't understand why you won't use set_task but you quite enjoy using prethink.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX 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 04:54.


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