AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   No boost code help (https://forums.alliedmods.net/showthread.php?t=88981)

GudiiS 03-31-2009 12:30

No boost code help
 
Hi. I have started with a "anti-boost" plugin.
But I'm bad at scripting and wonder if someone could help me her.
I don't know how to do now.

PHP Code:

#include <amxmodx>
#include <fakemeta>
#include <xs>
 
#define NAME "anti-boost"
#define VERSION "1.0"
#define AUTHOR "author"
 
new cvar_screenshakecvar_punishmentcvar_damagecvar_headsplashcvar_slay;
public 
plugin_init()
{
         
register_plugin(PLUGINVERSIONAUTHOR)
         
cvar_punishment register_cvar("ab_punishment""1");
         
cvar_screenshake register_cvar("amx_punishment""1");
         
cvar_damge register_cvar("amx_boostdamage""1");
         
cvar_headsplash register_cvar("amx_headsplash""1");
         
cvar_slay register_cvar("amx_slay""1");
}
public 
antiboost (id)
{
     if(
get_pcvar_num(cvar_punishment) == 1)
     {
            if(
get_pcvar_num(cvar_screenshake) == 1)
            {
                   if(
get_pcvar_num(cvar_damage) == 1)
                   {
                           if(
get_pcvar_num(cvar_headsplash) == 1)
                           {
                                  if(
get_pcvar_num(cvar_slay) == 1)
                                  {
}
 
public 
client_PreThink(id)



Dr.G 03-31-2009 16:45

Re: No boost code help
 
what is anti boost?

One 03-31-2009 16:50

Re: No boost code help
 
you hit ur m8 & ur m8 can fly or willbe boosted UP! btw i thinked this would be blocked by vac?!

GudiiS 03-31-2009 17:32

Re: No boost code help
 
blocked by vac, why?

sry didn't explane anti-boost.
ex: when a ct jump on another ct's head u got screenshak punished or something.

One 03-31-2009 17:46

Re: No boost code help
 
oh. oki its not boost :-D

Hunter-Digital 04-01-2009 08:54

Re: No boost code help
 
See this http://forums.alliedmods.net/showthread.php?p=504337

GudiiS 04-01-2009 10:36

Re: No boost code help
 
ye, that's nice. but i want headsplash and the other things in the anti-boost.
I hope any1 can help me with it.

One 04-01-2009 13:18

Re: No boost code help
 
do we know why its so?i think first we must know why its so that when ur on a player, ur screen shakes!
i think this is cuz hitboxs & models. maybe we could add a invisible box over a player? idk

GudiiS 04-01-2009 13:27

Re: No boost code help
 
ye, i don't know. can't we make it so just when a player touch the others head. it starts screenshake slap him away or something. u can chose what u want it to do. u can also have all cvar "1".

One 04-01-2009 13:30

Re: No boost code help
 
Quote:

Originally Posted by GudiiS (Post 794843)
ye, i don't know. can't we make it so just when a player touch the others head. it starts screenshake slap him away or something. u can chose what u want it to do. u can also have all cvar "1".

hmmm :-?i never worked with hitboxes but if its poss to hook the head hitbox , i could maybe write slap if distance <= xx ! idk maybe arkshin know better about this


All times are GMT -4. The time now is 02:16.

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