AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Crossing Events [SOLVED] (https://forums.alliedmods.net/showthread.php?t=46670)

Nostrodamous 10-30-2006 23:50

Crossing Events [SOLVED]
 
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 ?:up:

Xanimos 10-31-2006 03:00

Re: Crossing Events
 
What do you mean? I don't get what you mean by "crossing" them.

Nostrodamous 10-31-2006 03:19

Re: Crossing Events
 
"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 . :wink:

sawce 10-31-2006 03:43

Re: Crossing Events
 
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...

Nostrodamous 10-31-2006 04:10

Re: Crossing Events
 
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 ?

VEN 11-01-2006 03:52

Re: Crossing Events
 
Check the snippets/tutorials forums section.

Brad 11-01-2006 09:26

Re: Crossing Events
 
And this is so scripting related. Will move.

XxAvalanchexX 11-01-2006 16:58

Re: Crossing Events
 
Crossing events is alright, but combining one that happens every single frame and one that only happens occasionally is a waste.

Nostrodamous 11-01-2006 18:00

Re: Crossing Events
 
Quote:

Originally Posted by XxAvalanchexX (Post 398332)
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?

XxAvalanchexX 11-01-2006 21:14

Re: Crossing Events
 
I don't understand why you won't use set_task but you quite enjoy using prethink.


All times are GMT -4. The time now is 04:54.

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