It's just an idea

Unpaid Requests, Public Plugins
Post Reply
Rain1153
Senior Member
Senior Member
India
Posts: 278
Joined: 6 years ago
Contact:

It's just an idea

#1

Post by Rain1153 » 5 years ago

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 😁
LOL

User avatar
Night Fury
Mod Developer
Mod Developer
Posts: 677
Joined: 7 years ago
Contact:

#2

Post by Night Fury » 5 years ago

Didn't get it.
Want your own mod edition? PM me.
Accepting private projects.
Discord: Fury#7469
Image

Rain1153
Senior Member
Senior Member
India
Posts: 278
Joined: 6 years ago
Contact:

#3

Post by Rain1153 » 5 years ago

umm wait ill make it u modify it if its buggy
LOL

Rain1153
Senior Member
Senior Member
India
Posts: 278
Joined: 6 years ago
Contact:

#4

Post by Rain1153 » 5 years ago

here it is
  1. #include <zombie_escape>
  2. #include <amxmisc>
  3. #include <fun>
  4.  
  5. #define PLUGIN "Transparent zm"
  6. #define VERSION "1.0"
  7. #define AUTHOR "RAIN~/whoever the author is" // plugin idea from zombie plague
  8.  
  9. new hplevel // Amount of HP before turning Semi-Invisible.
  10. new invisamount  // ammount of alpha( transparency)
  11.  
  12. new g_old_health[33];
  13.  
  14. public plugin_init()
  15.  {
  16.     register_plugin(PLUGIN, VERSION, AUTHOR)
  17.    
  18.     register_event("Health", "EventHealth", "b");
  19.    
  20.     hplevel = register_cvar("ze_low_health", "35");
  21.     invisamount = register_cvar("ze_amount_alpha", "0");
  22. }
  23.  
  24.  
  25.  
  26. public EventHealth(id)
  27. {
  28.     new health = read_data(2);
  29.     if( health == g_old_health[id] ) return;
  30.    
  31.     if( ze_is_user_zombie(id) && health > 0 )
  32.     {
  33.  
  34.         if(health <= hplevel)
  35.         {
  36.             set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderTransAdd, get_pcvar_num(invisamount));
  37.             client_print(id, print_chat, "Your health is below %d, you are transperant,hplevel");
  38.         }
  39.     }
  40.    
  41.     g_old_health[id] = health;
  42. }




And pls make the aura removed when user is humanized or disconnected
LOL

Post Reply

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

Register

Sign in

Who is online

Users browsing this forum: No registered users and 1 guest