Raised This Month: $ Target: $400
 0% 

How to do the Vampiric Arua (steal HP)?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Rolnaaba
Veteran Member
Join Date: May 2006
Old 06-03-2006 , 18:16   How to do the Vampiric Arua (steal HP)?
Reply With Quote #1

what is a good way to make it so when you shoot someone you get some health back (Vamp. Arua War3 mod kinda thing)? the only .sma of War3 I have is UWC3 and its not very helpful. if someone can tell me how to do this, or even better give me a link for War3FT.sma file or original War3.sma files so I can look it up myself I would be very grateful
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 06-03-2006 , 18:37  
Reply With Quote #2

Check out v3x's mirror damage plugin for help.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 06-04-2006 , 02:16  
Reply With Quote #3

this may or may not work:
Code:
#include <amxmodx> #include <fun> #define MAX_HP  100 new CVAR_MOD; public plugin_init() {     register_plugin("Mask of death" , "0.2" , "v3x");     register_event("Damage" , "Event_Damage" , "b" , "2>0");     CVAR_MOD = register_cvar("mp_maskofdeath" , "1"); } public Event_Damage(id) {     if(!get_pcvar_num(CVAR_MOD))         return PLUGIN_CONTINUE;     new attacker = get_user_attacker(id);     if((read_data(2) / 2) > MAX_HP)         return PLUGIN_CONTINUE;     if(!is_user_alive(attacker) || id == attacker)         return PLUGIN_CONTINUE;     new hp = get_user_health(attacker) + (read_data(2) / 2);     if(hp < MAX_HP && hp > 0)         set_user_health(id , hp);     else         set_user_health(id , MAX_HP); // or 100     return PLUGIN_CONTINUE; }
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 06-04-2006 , 02:30  
Reply With Quote #4

For reference multiplying by .5 is faster than dividing by two.
Also you may get a tag mismatch with that.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
Old 05-01-2008, 09:42
anakin_cstrike
This message has been deleted by v3x. Reason: stealing credit & bumping a thread from the grave is not cool
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 16:22.


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