Raised This Month: $51 Target: $400
 12% 

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 , 03: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 , 06: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 , 06: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 , 11: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 11:05.
aron9forever is offline
arvEL.
Senior Member
Join Date: Dec 2014
Location: Iraq
Old 02-11-2018 , 22: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 , 04: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 , 09: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
Junior Member
Join Date: Feb 2017
Location: ML_CRINGE_ALTER: localho
Old 06-29-2020 , 12: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 12:30.
Y0SseF is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 06-29-2020 , 13:24   Re: what this code do?? and how to convert it to AMXX
Reply With Quote #9

It's basically the zp50_leap.
__________________








CrazY. is offline
Reply



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 04:52.


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