AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   predator ability (https://forums.alliedmods.net/showthread.php?t=299211)

sayf118 07-07-2017 08:26

predator ability
 
1 Attachment(s)
i made a zombie plague 6.2 mod and i host my own server
one thing i need it a help in predator ability
in game when i choose predator class after that i become nemesis or assassin <= just this 2
invisible ability steel active , speed and gravity changes too

Craxor 07-07-2017 09:18

Re: predator ability
 
In your fw_ppt you're never setting the user as being Visibile after you make him invisibile:
Code:
public fw_ppt(id) {     if (!is_user_alive(id) || !zp_get_user_zombie(id))         return FMRES_IGNORED         if (g_use[id])     {         static button, oldbutton         button = get_user_button(id)         oldbutton = get_user_oldbutton(id)                 if (!(button & IN_USE) && (oldbutton & IN_USE))                   ability(id)     }         if (g_ability[id] && (zp_get_user_zombie_class(id) == g_zclass_Predator) && zp_get_user_zombie(id))     {         set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, get_pcvar_num(cvar_invamount))         set_user_maxspeed(id, get_pcvar_float(cvar_speed))         set_pev(id, pev_flTimeStepSound, 999)         set_user_gravity(id, get_pcvar_float(cvar_gravity) / 800)     }         return PLUGIN_CONTINUE }

You have to make an Else If and set the render back to kRenderNormal

sayf118 07-07-2017 09:30

Re: predator ability
 
sory i don't understand anything
can you please recoded it for me ??
my problem again is:
when i choose predator class
then i turn my self nemesis or assassin speed and gravity of those <= changes to predator speed and gravity else when i am nemesis or assassin i steel have invisble abilty and that too what i don't want it

Craxor 07-07-2017 09:37

Re: predator ability
 
Quote:

Originally Posted by sayf118 (Post 2533901)
i made a zombie plague 6.2 mod

You said you made it, if you made the entire code this should be an easy task to change the code by yourself, that proving you do nothing, you just use someone else code or you've just copied random code from internet.... if you are not able to do that by yourself you should post in Request Section.


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

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