If you like it you can use it in our ze mod.
So we can use the render thing to render the aura to a zombie like partially...as the alpha value can be changed
So my idea is
Lets read the value of health of zombies
After we read the base health and if his health is below 25 % for example his base health was 10k so if health is reduced to 3500..plugin starts to render transparency to him! And ends at ze_user_humanized or cleint disconnected
It's just an idea
- Night Fury
- Mod Developer
- Posts: 677
- Joined: 7 years ago
- Contact:
Didn't get it.
here it is
And pls make the aura removed when user is humanized or disconnected
- #include <zombie_escape>
- #include <amxmisc>
- #include <fun>
- #define PLUGIN "Transparent zm"
- #define VERSION "1.0"
- #define AUTHOR "RAIN~/whoever the author is" // plugin idea from zombie plague
- new hplevel // Amount of HP before turning Semi-Invisible.
- new invisamount // ammount of alpha( transparency)
- new g_old_health[33];
- public plugin_init()
- {
- register_plugin(PLUGIN, VERSION, AUTHOR)
- register_event("Health", "EventHealth", "b");
- hplevel = register_cvar("ze_low_health", "35");
- invisamount = register_cvar("ze_amount_alpha", "0");
- }
- public EventHealth(id)
- {
- new health = read_data(2);
- if( health == g_old_health[id] ) return;
- if( ze_is_user_zombie(id) && health > 0 )
- {
- if(health <= hplevel)
- {
- set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderTransAdd, get_pcvar_num(invisamount));
- client_print(id, print_chat, "Your health is below %d, you are transperant,hplevel");
- }
- }
- g_old_health[id] = health;
- }
And pls make the aura removed when user is humanized or disconnected
LOL
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute
Sign in
Who is online
Users browsing this forum: No registered users and 7 guests