HookMod X
Im making a hookmod that works with bots (based off the hook grab for amxmod) and it works fine sept for 1 teeny problem>>>the hooks dont show always and if they do they hook to odd origins??? why?? Im using te_beaments and defining both entities and updating entity 2 to be at the user aiming point or if hooked to an entity oldorigin-neworigin+targetorigin
Code:
|
Should it be called HookModX, that implies it's for MMX and not AMXX as HookMod is a MM plugin... it would be great to have an update as long as all the variables folks (like me) ar currently using. If you making a new rope or Hook interface the name may seem misleading... This would be nice if code is optimised for HookMod...
Vic/DT |
actually no its not x I was just keeping it there for a version or such **** thatll be replaced later :P
but I still need help makin the hoox show...pretty much all that is originally from Amx Hook Grab is the velocity formulas |
Ok man, just trying to be sure if I am looking at a HookMod interface or a Ninjarope type mod that isn't HookMod but acts similar (but not similar)... Ninja Rope has been ported...
http://forums.alliedmods.net/showthread.php?t=601 If it isn't an interface for hookmod to enable hookmod changes thru AMX it is another version of Ninja Rope or a new HookModX ? Vic/DT |
its pretty much exactly like hookmod sept that bots can use it and I might make a few cvar additions later (a lot more likely)
|
this here is what we call a bump
Quote:
|
revised::: but Im still having trouble at the hilighted part....
the error Im gettin is like PM getting NaN velocity on 1 or 0.....ne1 can explain why it doesnt like my numbers Code:
{ new id = parm[0] if(grabbed[id]) { new origin[3], moveto[3], velocity[3], length if (!is_user_alive(grabbed[id])) { unhook(id) return 0 } new Float:forigin[3] entity_get_vector(hooxtarget[id],EV_VEC_origin,forigin) get_user_origin(id, origin)//, 1) new speed = sv_hookforce new dist1[3] for(new p=0;p<3;p++){ dist1[p] = floatround(forigin[p]) } length = get_distance(dist1,origin) if(length<=20) return 0 for(new p = 0;p<3;p++){ moveto[p]=origin[p]+(floatround(forigin[p])-origin[p])*speed/length velocity[p]=(moveto[p]-origin[p]) } entity_set_vector(id, EV_VEC_velocity, Float:velocity) if(targethit[id]){ new diff[3] entity_get_vector(targethit[id],EV_VEC_origin,forigin) for(new l = 0; l < 3; l++){ diff[l] = floatround(forigin[l]) - oldtargorigin[id][l] + oldentorigin[id][l] oldtargorigin[id][l] = floatround(forigin[l]) oldentorigin[id][l]=diff[l] } entity_set_vector(hooxtarget[id],EV_VEC_origin,Float:diff) } } return 0 } Code:
|
wow.
|
^bump
|
*****bump
|
buuuuuuuuuump
|
Quote:
|
buuuuuuuuuuuuuuuuummmmmmmmmmmmmmppppppppppp :roll:
|
okay; stop bumping and show us which part of the plugins is making troubles; no one wants to read through the whole plugin ;]
|
Code:
|
********************
********************* ************BUMP |
***********************
DOUBLE BUMP TO THE ISM! *********************** |
uhhhh lol wahts an ism
|
:arrow:
|
:arrow: :arrow:
|
my you're impatient :P
|
nahhhhhh see the original post? thats been a looooooooooongggggg time
|
its too confusing for people to help i sayz try looking over the hookmod/ninjarope plugins
|
welllllll ne1 who figers out the prob gets lotzzzzza credit
|
and any1 with bots on their server could see the bots use hook if this ever gets fixed :lol:
|
Code:
#include<fun> try changine those three just to Code:
#include<engine> |
man I am half way tempted to do it my damn self so he can stop bumping this post.
p.s fun and engine are 2 diff modules. |
Code:
#include<xtrafun> try changine those two just to Code:
#include<engine> |
He wont be able to do this plugin at all, there is no entity_get_origin native in the engine module, their is a entity_set_origin, but no get_origin, this plugin requires a entity_get_origin native, until they add that to the engine module you cant even use this, they most likely also need to add set/get_user_velocity or I am just not able to find these in the include files.
|
so it's not possible yet then?
|
cant you get origin from entvars?
|
Quote:
|
lol
in engine cant you use this?:
Code:
entity_get_vector(hookid,EV_VEC_origin,origin) |
Re: lol
Quote:
|
well (dot dot dot) I did go ahead and do that already... if u scrolled down a few miles, ud see that :lol:
|
| All times are GMT -4. The time now is 21:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.