Raised This Month: $99 Target: $400
 24% 

Hook Grab Deluxe


Post New Thread Reply   
 
Thread Tools Display Modes
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-12-2019 , 17:53   Re: Hook Grab Deluxe
Reply With Quote #71

Quote:
Originally Posted by DJEarthQuake View Post
Displaying debug trace (plugin "testing/hook_grab.amxx", version "0.16")
[AMXX] [0] hook_grab.sma::unhook (line 157)
[AMXX] [1] hook_grab.sma::hookgrabtask (line 117)

Solutions?
Post the full error.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
DJEarthQuake
Senior Member
Join Date: Jan 2014
Location: Midwest
Old 02-12-2019 , 19:32   Re: Hook Grab Deluxe
Reply With Quote #72

Rookie mistake. I can't believe I pasted the grep. Here's the ball of wax! Thank you.

L 02/12/2019 - 16:27:24: Start of error session.
L 02/12/2019 - 16:27:24: Info (map "starwars") (file "addons/amxmodx/logs/error_20190212.log")
L 02/12/2019 - 16:27:24: [FUN] Invalid player 3
L 02/12/2019 - 16:27:24: [AMXX] Displaying debug trace (plugin "testing/hook_grab.amxx", version "0.16")
L 02/12/2019 - 16:27:24: [AMXX] Run time error 10: native error (native "set_user_maxspeed")
L 02/12/2019 - 16:27:24: [AMXX] [0] hook_grab.sma::unhook (line 157)
L 02/12/2019 - 16:27:24: [AMXX] [1] hook_grab.sma::hookgrabtask (line 117)
L 02/12/2019 - 16:27:24: [FUN] Invalid player 2
L 02/12/2019 - 16:27:24: [AMXX] Displaying debug trace (plugin "testing/hook_grab.amxx", version "0.16")
L 02/12/2019 - 16:27:24: [AMXX] Run time error 10: native error (native "set_user_maxspeed")
L 02/12/2019 - 16:27:24: [AMXX] [0] hook_grab.sma::unhook (line 157)
L 02/12/2019 - 16:27:24: [AMXX] [1] hook_grab.sma::hookgrabtask (line 117)
__________________
"It's not the actual programming that's interesting. But it's what you can accomplish with the end results that are important." -Dennis Ritchie
"Mathematics, rightly viewed, possesses not only truth, but supreme beauty a beauty cold and austere, like that of sculpture..." -Bertrand Russell
DJEarthQuake is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-13-2019 , 03:16   Re: Hook Grab Deluxe
Reply With Quote #73

The player isn't connected when using set_user_maxspeed. I believe you're able do to it since you have released some plugins here - simply add a check if he is connected before using the function.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
DJEarthQuake
Senior Member
Join Date: Jan 2014
Location: Midwest
Old 02-13-2019 , 09:15   Re: Hook Grab Deluxe
Reply With Quote #74

Code:
public client_putinserver(id)         /* if(is_user_bot(id)){ */         if(is_user_bot(id) && is_user_connected(id)){

Code:
if(get_cvar_num("sv_hook")&&is_user_bot(id)&&is_user_alive(id)&&is_user_connected(id)&&!grabbed[id])

Code:
///     if(!is_user_alive(grabbed[id])){  //due to L 07/05/2019 - 15:21:19: [FUN] Invalid player 7  hookgrabtask (line 228)         if(!is_user_alive(grabbed[id]) || is_user_bot(id) && !is_user_alive(grabbed[id])){

Code:
        if(is_user_connected(id) && is_user_alive(id) || is_user_bot(id) && is_user_connected(id) && is_user_alive(id))         set_user_maxspeed(id,maxspeed[id])
Attached Files
File Type: zip FT.zip (271.4 KB, 3 views)
File Type: sma Get Plugin or Get Source (botshook.sma - 40 views - 13.4 KB)
__________________
"It's not the actual programming that's interesting. But it's what you can accomplish with the end results that are important." -Dennis Ritchie
"Mathematics, rightly viewed, possesses not only truth, but supreme beauty a beauty cold and austere, like that of sculpture..." -Bertrand Russell

Last edited by DJEarthQuake; 07-06-2019 at 13:13. Reason: found the hotspots and adding SMA
DJEarthQuake is offline
DJEarthQuake
Senior Member
Join Date: Jan 2014
Location: Midwest
Old 02-13-2019 , 16:29   Re: Hook Grab Deluxe
Reply With Quote #75

Now I got it stable. New mod all together. Bot rocket. Soon I will reach out to somebody for the airplane player models to match.





Attached Images
File Type: jpg botrocket.jpg (50.1 KB, 107 views)
File Type: jpg botrocket1.jpg (64.0 KB, 110 views)
File Type: jpg botrocket2.jpg (61.6 KB, 109 views)
__________________
"It's not the actual programming that's interesting. But it's what you can accomplish with the end results that are important." -Dennis Ritchie
"Mathematics, rightly viewed, possesses not only truth, but supreme beauty a beauty cold and austere, like that of sculpture..." -Bertrand Russell

Last edited by DJEarthQuake; 02-13-2019 at 16:31.
DJEarthQuake is offline
DJEarthQuake
Senior Member
Join Date: Jan 2014
Location: Midwest
Old 07-06-2019 , 13:37   Re: Hook Grab Deluxe
Reply With Quote #76

I just added my UFO variation of this plugin. The jest of the resolution was human or bot remaking of about 4 lines of code. I beautified the project and made the hook practically invisible to appear to be magnetic anti-gravity drive. That is an upgrade to the jet pack. I noticed the jetpack when people or bots changed direction it looked funny seeing the flames come out their stomach. The new make uses a pyramid sprite that changing color to give it that UFO touch.



Code:
///     if(!is_user_alive(grabbed[id])){  //due to L 07/05/2019 - 15:21:19: [FUN] Invalid player 7  hookgrabtask (line 228)         if(!is_user_alive(grabbed[id]) || is_user_bot(id) && !is_user_alive(grabbed[id])){

TO DO: create new model.
https://gamebanana.com/requests/11378



Make sure there is a directory named FT in the mod's root sprite directory and extract pyramid sprite into it. Update your fast downloads server directory also. To use bind +hook just like Drunken Fool made hook 20 years ago! I will give him due credit and botman also. You all can thank the Sphinx for overseeing the pyramidal UFO drive. If you use this mod on a small map with low ceiling you are not optimized. It needs large map with high ceilings.
Attached Files
File Type: sma Get Plugin or Get Source (botshook.sma - 44 views - 13.4 KB)
File Type: zip FT.zip (271.4 KB, 11 views)
__________________
"It's not the actual programming that's interesting. But it's what you can accomplish with the end results that are important." -Dennis Ritchie
"Mathematics, rightly viewed, possesses not only truth, but supreme beauty a beauty cold and austere, like that of sculpture..." -Bertrand Russell
DJEarthQuake is offline
Reply


Thread Tools
Display Modes

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 20:00.


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