How to make mediguns give kritz and mega heal?
How would I force tf2 to "Seperate" the attributes "medigun charge is crit boost" and "medigun charge is megaheal" so that I can make a medigun(when uber deployed) act like a hybrid quick-fix and kritzkrieg. Atm, tf2 treats the 3 attributes for the 3 non-regular ubercharge mediguns as 1 attribute(with a numbering system from 1 to 3 with 1 being crits and 3 being resists).
Edit, may a combo of using a forward to tell when an uber was removed, event when uber was deployed, and the forward for crits. Edit2: This is what I got started so far: Code:
//Unnessecary code replaced by this comment |
Re: How to make mediguns give kritz and mega heal?
u dont need a plugin u can do this on tf2items_weapons.txt
|
Re: How to make mediguns give kritz and mega heal?
Have you ever tried combining: medigun charge is megaheal with value of 2 and medigun charge is crit boost with value of 1?
|
Re: How to make mediguns give kritz and mega heal?
yeah several times and works!
|
Re: How to make mediguns give kritz and mega heal?
O_O Odd cause when I try, it always adds it to value of 3.
From what I noticed in items_game.txt, the 3 attributes for the 3 none standard mediguns are in a number like system. |
Re: How to make mediguns give kritz and mega heal?
Quote:
18 ; 1 231 ; 1 |
Re: How to make mediguns give kritz and mega heal?
No, there additive alright but additive in a way that you can mismatch them into being different charges(the one applied to kritzkrieg can be turned into one that does what the one applied to quick-fix does):
PHP Code:
so doing 18 with value of 2 does exactly like 231 with value of 2. Doing 18 with value of 1 and 231 with value of 2 does exactly the same as 473 with value of 3 |
Re: How to make mediguns give kritz and mega heal?
Quote:
|
Re: How to make mediguns give kritz and mega heal?
I'm trying to do something similar by making a Medigun with both features from the Quick-Fix and the Vaccinator. Unfortunately I believe they're hard-coded in, as they're based on the same attribute class, set_weapon_mode.
The same applies to the Ubercharges, which is dependent on set_charge_type. Setting it to 1 creates Kritzkrieg's Crits, 2 creates Quick-Fix's Megaheal, 3 creates Vaccinator's Resists (which can be very buggy), and leaving it empty is a standard Invulnerability. The VS Saxton Hale plug-in worked around it and I tweaked it a little for what I'm trying to make: Code:
#include <tf2_stocks> |
Re: How to make mediguns give kritz and mega heal?
Quote:
|
All times are GMT -4. The time now is 23:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.