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

festive Crossbow added


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BBG_Theory
Veteran Member
Join Date: Oct 2010
Location: NC USA
Old 12-22-2013 , 01:36   festive Crossbow added
Reply With Quote #1

We alter the crossbow in FF2 as per

Code:
  case 305:
  {
   new Handle:hItemOverride = PrepareItemHandle(hItem, _, _, "17 ; 0.1 ; 2 ; 1.2"); // ; 266 ; 1.0");
   if (hItemOverride != INVALID_HANDLE)
   {
    hItem = hItemOverride;
    return Plugin_Changed;
   }
  }
but now there is a festive and a strange festive crossbow that needs to be added.. I looked through the items_game.txt and found 1079

so I am wondering what is the best change?
This??
Code:
  case 305, 1079:
  {
   new Handle:hItemOverride = PrepareItemHandle(hItem, _, _, "17 ; 0.1 ; 2 ; 1.2"); // ; 266 ; 1.0");
   if (hItemOverride != INVALID_HANDLE)
   {
    hItem = hItemOverride;
    return Plugin_Changed;
   }
  }
Would that correctly handle the festive crossbow and would that address the strange festive crossbow also???


edited....also, there is now a festive flare gun (39).. don't we alter the flare and perhaps that festive (1081) and strange festive needs to be addressed also

Last edited by BBG_Theory; 12-22-2013 at 01:42.
BBG_Theory is offline
MasterOfTheXP
Veteran Member
Join Date: Aug 2011
Location: Cloudbank
Old 12-22-2013 , 05:37   Re: festive Crossbow added
Reply With Quote #2

Yeah, that's the best way of doing it (case mainitemindex, reskinindex, ...). Unique Festives & Strange Festives share the same item index, so no need to worry about that.
__________________
Plugins / My Steam / TF2 Sandbox (plugin beta testing!)
MasterOfTheXP is offline
dikkid
Member
Join Date: Jul 2013
Old 12-22-2013 , 22:08   Re: festive Crossbow added
Reply With Quote #3

Do you mean by simply adding the ID, it would just use the configuration in freak_fortress_2 ??
Did try this morning ending with hales not able to use melee weps
dikkid is offline
BBG_Theory
Veteran Member
Join Date: Oct 2010
Location: NC USA
Old 12-22-2013 , 23:57   Re: festive Crossbow added
Reply With Quote #4

seems we need to deal with the festive flare gun, the festive crossbow and the festive GRU in both Saxton Hale and FF2

festive flare is 1081
festive crossbow is 1079
and festive GRU is 1084

the festive flare needs to let us jump

Last edited by BBG_Theory; 12-23-2013 at 00:03.
BBG_Theory is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 12-23-2013 , 13:20   Re: festive Crossbow added
Reply With Quote #5

You have to add it's index to the addcrit switch also, or it wont get crit buffed.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
BBG_Theory
Veteran Member
Join Date: Oct 2010
Location: NC USA
Old 12-23-2013 , 21:32   Re: festive Crossbow added
Reply With Quote #6

Quote:
Originally Posted by friagram View Post
You have to add it's index to the addcrit switch also, or it wont get crit buffed.
what section is that, if you search FF2 for addcrit, you get nothing. Can you be more specific on the edit
BBG_Theory is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 12-23-2013 , 22:25   Re: festive Crossbow added
Reply With Quote #7

Just look for the old xbow index
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
dikkid
Member
Join Date: Jul 2013
Old 12-24-2013 , 08:20   Re: festive Crossbow added
Reply With Quote #8

-Snip-

Last edited by dikkid; 12-24-2013 at 08:24.
dikkid is offline
dikkid
Member
Join Date: Jul 2013
Old 12-24-2013 , 08:23   Re: festive Crossbow added
Reply With Quote #9

Would it be fine if i edit this part?

PHP Code:
switch (index)
            {
                case 
305107914562012304028511620358526addthecrit true;
                case 
2223160209294449:
                {
                    
addthecrit true;
                    if (class == 
TFClass_Scout && cond == TFCond_HalloweenCritCandycond TFCond_Buffed;
                }
                case 
656:
                {
                    
addthecrit true;
                    
cond TFCond_Buffed;
                }
            } 
Would this actually work? Also this one for Flaregun

PHP Code:
case 391081351:
            {
                if (
GetEntProp(weaponProp_Send"m_iEntityQuality") != 10)
                {
                    
TF2_RemoveWeaponSlot(clientTFWeaponSlot_Secondary);
                    
weapon SpawnWeapon(client"tf_weapon_flaregun"39510"25 ;  0.5 ;  207 ;  1.33 ;  144 ;  1.0 ;  58 ;  5.0");
                }
            } 
The 1081 was the festive flare gun

Last edited by dikkid; 12-24-2013 at 08:43.
dikkid is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 12-24-2013 , 19:18   Re: festive Crossbow added
Reply With Quote #10

Yeah, just add the festives in along side their non-festive versions
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.

Last edited by friagram; 12-24-2013 at 19:19.
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 02:10.


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