AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   what this code do?? and how to convert it to AMXX (https://forums.alliedmods.net/showthread.php?t=305138)

arvEL. 02-09-2018 03:24

what this code do?? and how to convert it to AMXX
 
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

klippy 02-09-2018 06:22

Re: what this code do?? and how to convert it to AMXX
 
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.

killerZM 02-09-2018 06:31

Re: what this code do?? and how to convert it to AMXX
 
i think that the code zombie outstanding or something
i saw it before ....

aron9forever 02-09-2018 11:05

Re: what this code do?? and how to convert it to AMXX
 
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

arvEL. 02-11-2018 22:45

Re: what this code do?? and how to convert it to AMXX
 
how can i use it in amxx plugin

klippy 02-12-2018 04:20

Re: what this code do?? and how to convert it to AMXX
 
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.

fysiks 02-12-2018 09:55

Re: what this code do?? and how to convert it to AMXX
 
If you don't know what it does why would you want to use it in a plugin?

Y0SseF 06-29-2020 12:21

Re: what this code do?? and how to convert it to AMXX
 
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.

CrazY. 06-29-2020 13:24

Re: what this code do?? and how to convert it to AMXX
 
It's basically the zp50_leap.


All times are GMT -4. The time now is 09:59.

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