Raised This Month: $149 Target: $400
 37% 

what this code do?? and how to convert it to AMXX


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
arvEL.
Senior Member
Join Date: Dec 2014
Location: Iraq
Old 02-09-2018 , 04:24   what this code do?? and how to convert it to AMXX
Reply With Quote #1

hi guys.. what this code do??

PHP Code:
static cell AMX_NATIVE_CALL twixQsJumpsAMX pAmxcell pParameters )
{
edict_t pPlayer MF_GetPlayerEdictpParameters] );

float fCoolDownfCurrentTime;

CPlayerspParameters] ].monster fCoolDown 1.0 fCoolDown 13.0;

fCurrentTime gpGlobals -> time;

if( 
fCurrentTime CPlayerspParameters] ].lastleap fCoolDown  || !( pPlayer -> v.button IN_JUMP ) || !( pPlayer -> v.flags  FL_ONGROUND ) || GetSpeedpPlayer ) < 80 )
return 
1;

MAKE_VECTORSpPlayer -> v.v_angle );

Vector fVelocity;

if( 
CPlayerspParameters] ].monster )
{
fVelocity gpGlobals -> v_forward 500fVelocity] = 300;
}

else
{
fVelocity gpGlobals -> v_forward 360fVelocity] = 250;
}

pPlayer -> v.velocity fVelocity;

CPlayerspParameters] ].lastleap fCurrentTime;

return 
1;

and how to use it in amxx plugin
__________________
arvEL. is offline
Send a message via Skype™ to arvEL.
KliPPy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 02-09-2018 , 07:22   Re: what this code do?? and how to convert it to AMXX
Reply With Quote #2

Seems like some kind of long jump or similar. The code you posted is out of context, it's referencing other things that you haven't posted. You have to post full code for someone to help you.
__________________
KliPPy is offline
killerZM
Senior Member
Join Date: Sep 2016
Old 02-09-2018 , 07:31   Re: what this code do?? and how to convert it to AMXX
Reply With Quote #3

i think that the code zombie outstanding or something
i saw it before ....
killerZM is offline
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 02-09-2018 , 12:05   Re: what this code do?? and how to convert it to AMXX
Reply With Quote #4

looks like a piece of an amxmodx module to me, part of a long-jump that works for both players and NPCs
how to replicate? look for longjump plugins
__________________
Meanwhile, in 2050:
Quote:
Originally Posted by aron9forever
useless small optimizations
Quote:
Originally Posted by Black Rose View Post
On a map that is 512x512x128 units you end up with 3,355,443,200,000 different "positions". To store each one of those positions individually in the variable "user_or" you need 12 terabytes of memory.

Last edited by aron9forever; 02-09-2018 at 12:05.
aron9forever is offline
arvEL.
Senior Member
Join Date: Dec 2014
Location: Iraq
Old 02-11-2018 , 23:45   Re: what this code do?? and how to convert it to AMXX
Reply With Quote #5

how can i use it in amxx plugin
__________________
arvEL. is offline
Send a message via Skype™ to arvEL.
KliPPy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 02-12-2018 , 05:20   Re: what this code do?? and how to convert it to AMXX
Reply With Quote #6

You've already got your answer. It's code from an AMXX module and it's not possible to tell you how to use it unless you post the code of that module.
__________________
KliPPy is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-12-2018 , 10:55   Re: what this code do?? and how to convert it to AMXX
Reply With Quote #7

If you don't know what it does why would you want to use it in a plugin?
__________________
fysiks is offline
Y0SseF
New Member
Join Date: Feb 2017
Location: morocco, agadir
Old 06-29-2020 , 13:21   Re: what this code do?? and how to convert it to AMXX
Reply With Quote #8

if it's from zombie_plague or zombie_outstanding module,
you can use it when ham "Ham_Player_Duck" is called, it changes nemesis velocity on every jump, and zombie velocity every jump he made between 13.0 seconds.
__________________

Last edited by Y0SseF; 06-29-2020 at 13:30.
Y0SseF is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 06-29-2020 , 14:24   Re: what this code do?? and how to convert it to AMXX
Reply With Quote #9

It's basically the zp50_leap.
__________________
Accepting private $$$ plugins requests.

@Steam: crazy770
@Discord: CrazY.#5317

Website | Channel

CrazY. 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 23:26.


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