Graal Forums  

Go Back   Graal Forums > Graal V6 forums > Feature request
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 09-30-2010, 03:12 AM
12171217 12171217 is offline
Banned
Join Date: Jan 2009
Posts: 453
12171217 has a spectacular aura about
Hooking scripts prior to default systems.

Dear Stefan,

Allow certain weapon scripts to be executed before default systems are ran. Can be done like:

hookEvent(HOOK_PREMOVEMENT, "lolTest");

then lolTest() would be executed before the player movement logic is done each frame.

With love,
Downsider
Reply With Quote
  #2  
Old 09-30-2010, 04:11 AM
MrOmega MrOmega is offline
One More Time
MrOmega's Avatar
Join Date: Aug 2010
Location: TN, USA
Posts: 631
MrOmega is an unknown quantity at this point
Send a message via AIM to MrOmega Send a message via MSN to MrOmega Send a message via Yahoo to MrOmega
I support this, please Stefan
__________________
Time is the fire in which we burn...
Up, Up, Down, Down, Left, Right, Left, Right, B, A, Select, Start! Now I got 99 LIVES!!!
Reply With Quote
  #3  
Old 09-30-2010, 10:31 AM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
state a example of usage please, i don't get what "hooking" into default systems would be good for (rather then making your own)
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you
Reply With Quote
  #4  
Old 09-30-2010, 03:18 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
then stuff like this could be easily done.

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
// Hook Level-link Function
  
hookEvent(HOOK_CHANGELEVEL"onChangeLevel");
}

function 
onChangeLevel(lvlxy) {
  
stupidFadeEffect();
  
waitfor(this"Faded"1.5);
  
warpPlayer(lvlxy);

__________________
Quote:
Reply With Quote
  #5  
Old 09-30-2010, 11:48 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
I'd rather seen it done like in JavaScript

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
universe.onLevelChange = function (levelNamexy) {
    
stupidFadeEffect();
    
// etc
    
return true// false would cancel the default action
  
};

__________________
Reply With Quote
  #6  
Old 09-30-2010, 11:52 PM
12171217 12171217 is offline
Banned
Join Date: Jan 2009
Posts: 453
12171217 has a spectacular aura about
Quote:
Originally Posted by cbk1994 View Post
I'd rather seen it done like in JavaScript

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
universe.onLevelChange = function (levelNamexy) {
    
stupidFadeEffect();
    
// etc
    
return true// false would cancel the default action
  
};

This is pretty much it, canceling the default action is also important.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 +2. The time now is 11:59 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.