Raised This Month: $51 Target: $400
 12% 

FF2 TFCond_RestrictToMelee Broken?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
93SHADoW
AlliedModders Donor
Join Date: Jul 2014
Location: Houston, TX
Old 11-18-2014 , 16:10   TFCond_RestrictToMelee Broken?
Reply With Quote #1

I was originally gonna use this for Female Heavy's KGB sub-rage but it looks like this TFCond is broken (it won't apply to players at all, but other TFConds work just fine)

It's there in the current version of tf2.inc but it doesn't seem to work at all. Not sure if there's another TFCond that can be substituted for this:
PHP Code:
enum TFCond
{
    
TFCond_Slowed 0,
    
TFCond_Zoomed,
    
TFCond_Disguising,
    
TFCond_Disguised,
    
TFCond_Cloaked,
    
TFCond_Ubercharged,
    
TFCond_TeleportedGlow,
    
TFCond_Taunting,
    
TFCond_UberchargeFading,
    
TFCond_Unknown1//9
    
TFCond_CloakFlicker 9,
    
TFCond_Teleporting,
    
TFCond_Kritzkrieged,
    
TFCond_Unknown2//12
    
TFCond_TmpDamageBonus 12,
    
TFCond_DeadRingered,
    
TFCond_Bonked,
    
TFCond_Dazed,
    
TFCond_Buffed,
    
TFCond_Charging,
    
TFCond_DemoBuff,
    
TFCond_CritCola,
    
TFCond_InHealRadius,
    
TFCond_Healing,
    
TFCond_OnFire,
    
TFCond_Overhealed,
    
TFCond_Jarated,
    
TFCond_Bleeding,
    
TFCond_DefenseBuffed,
    
TFCond_Milked,
    
TFCond_MegaHeal,
    
TFCond_RegenBuffed,
    
TFCond_MarkedForDeath,
    
TFCond_NoHealingDamageBuff,
    
TFCond_SpeedBuffAlly,        //32
    
TFCond_HalloweenCritCandy,
    
TFCond_CritCanteen,
    
TFCond_CritDemoCharge,
    
TFCond_CritHype,
    
TFCond_CritOnFirstBlood,
    
TFCond_CritOnWin,
    
TFCond_CritOnFlagCapture,
    
TFCond_CritOnKill,
    
TFCond_RestrictToMelee,
    
TFCond_DefenseBuffNoCritBlock,
    
TFCond_Reprogrammed,
    
TFCond_CritMmmph,
    
TFCond_DefenseBuffMmmph,
    
TFCond_FocusBuff,
    
TFCond_DisguiseRemoved,
    
TFCond_MarkedForDeathSilent,
    
TFCond_DisguisedAsDispenser,
    
TFCond_Sapped,
    
TFCond_UberchargedHidden,
    
TFCond_UberchargedCanteen,
    
TFCond_HalloweenBombHead,
    
TFCond_HalloweenThriller,
    
TFCond_RadiusHealOnDamage,
    
TFCond_CritOnDamage,
    
TFCond_UberchargedOnTakeDamage,
    
TFCond_UberBulletResist,
    
TFCond_UberBlastResist,
    
TFCond_UberFireResist,
    
TFCond_SmallBulletResist,
    
TFCond_SmallBlastResist,
    
TFCond_SmallFireResist,
    
TFCond_Stealthed// 64
    
TFCond_MedigunDebuff,
    
TFCond_StealthedUserBuffFade,
    
TFCond_BulletImmune,
    
TFCond_BlastImmune,
    
TFCond_FireImmune,
    
TFCond_PreventDeath,
    
TFCond_MVMBotRadiowave,
    
TFCond_HalloweenSpeedBoost,
    
TFCond_HalloweenQuickHeal,
    
TFCond_HalloweenGiant,
    
TFCond_HalloweenTiny,
    
TFCond_HalloweenInHell,
    
TFCond_HalloweenGhostMode,

    
TFCond_DodgeChance 79,
    
TFCond_Parachute,
    
TFCond_BlastJumping,
};

const 
Float:TFCondDuration_Infinite = -1.0
I don't want to have to rely on TF2_RemoveWeaponSlot and having to respawn the player in their current spot for this.
__________________

Last edited by 93SHADoW; 11-18-2014 at 16:25.
93SHADoW is offline
Send a message via AIM to 93SHADoW Send a message via Skype™ to 93SHADoW
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 11-18-2014 , 20:37   Re: TFCond_RestrictToMelee Broken?
Reply With Quote #2

According to flaminsarge, restrict to melee only makes it so that if you're equipped with melee, you can't switch off. If you're equipped with something else, it won't necessarily switch you.

So you have two options.

1. Set their weapon to melee when you add the condition.
2. Use the new halloween condition that also restricts them to melee and covers changing their weapon. - But it also applies the bighead small body h'ween spell or something, so you'd need to remove that condition when you apply this one.
__________________
Chdata is offline
ClassicGuzzi
Veteran Member
Join Date: Oct 2013
Location: Argentina
Old 11-18-2014 , 21:15   Re: TFCond_RestrictToMelee Broken?
Reply With Quote #3

You could do something like this https://forums.alliedmods.net/showthread.php?p=1241921

Basically you force melee on game frame.
ClassicGuzzi is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 11-19-2014 , 05:33   Re: TFCond_RestrictToMelee Broken?
Reply With Quote #4

Add the halloween melee cond.
Remove hand scale attribute with tf2att.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
Reply



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 15:18.


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