Raised This Month: $32 Target: $400
 8% 

predator ability


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sayf118
Member
Join Date: Jul 2017
Old 07-07-2017 , 08:26   predator ability
Reply With Quote #1

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
Attached Files
File Type: sma Get Plugin or Get Source (predator_blue.sma - 531 views - 7.8 KB)
sayf118 is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 07-07-2017 , 09:18   Re: predator ability
Reply With Quote #2

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
__________________
Project: Among Us

Last edited by Craxor; 07-07-2017 at 09:19.
Craxor is offline
Send a message via ICQ to Craxor
sayf118
Member
Join Date: Jul 2017
Old 07-07-2017 , 09:30   Re: predator ability
Reply With Quote #3

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
sayf118 is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 07-07-2017 , 09:37   Re: predator ability
Reply With Quote #4

Quote:
Originally Posted by sayf118 View Post
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.
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
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 11:00.


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