Raised This Month: $32 Target: $400
 8% 

FF2 How to fix Christmas weapon?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hkkelvin1995
Senior Member
Join Date: Jun 2009
Location: Hong Kong
Old 04-04-2014 , 23:02   How to fix Christmas weapon?
Reply With Quote #1

Some special weapons
for example, AWP, Christmas Sniper Rifle etc don't have 100% crit
How can i fix it?
Do i need to edit the main plugin freak_fortress_2.smx in order to fix that?
(I'm using 1.07)

Last edited by hkkelvin1995; 04-05-2014 at 04:06.
hkkelvin1995 is offline
Wliu
Veteran Member
Join Date: Apr 2013
Old 04-05-2014 , 09:51   Re: How to fix Christmas weapon?
Reply With Quote #2

Yes. Find OnGiveNamedItem and checkItems (forget which one), then find where the sniper rifles get crits added.
__________________
~Wliu
Wliu is offline
BBG_Theory
Veteran Member
Join Date: Oct 2010
Location: NC USA
Old 04-05-2014 , 11:32   Re: How to fix Christmas weapon?
Reply With Quote #3

what item numbers are those.. I cant say I even remember a Christmas sniper rifle. And AWP ? drawing a blank on what that is also
BBG_Theory is offline
MasterOfTheXP
Veteran Member
Join Date: Aug 2011
Location: Cloudbank
Old 04-05-2014 , 11:41   Re: How to fix Christmas weapon?
Reply With Quote #4

Item numbers...?
__________________
Plugins / My Steam / TF2 Sandbox (plugin beta testing!)
MasterOfTheXP is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 04-05-2014 , 11:58   Re: How to fix Christmas weapon?
Reply With Quote #5

he means item id.
Awper hand: 851
Festive sniper rifle 2011: 664
WildCard65 is offline
BBG_Theory
Veteran Member
Join Date: Oct 2010
Location: NC USA
Old 04-05-2014 , 20:03   Re: How to fix Christmas weapon?
Reply With Quote #6

ok, but we are doing the same thing with item id 14, 851 and 664, so I'm not getting what he is talking about. They should all act the same
BBG_Theory is offline
hkkelvin1995
Senior Member
Join Date: Jun 2009
Location: Hong Kong
Old 04-06-2014 , 04:48   Re: How to fix Christmas weapon?
Reply With Quote #7

Quote:
Originally Posted by Wliu View Post
Yes. Find OnGiveNamedItem and checkItems (forget which one), then find where the sniper rifles get crits added.
Sorry, but it doesn't work.....
still have to find another solution..
hkkelvin1995 is offline
Wliu
Veteran Member
Join Date: Apr 2013
Old 04-06-2014 , 08:04   Re: How to fix Christmas weapon?
Reply With Quote #8

I'm guessing you didn't compile.
__________________
~Wliu
Wliu is offline
BBG_Theory
Veteran Member
Join Date: Oct 2010
Location: NC USA
Old 04-06-2014 , 11:11   Re: How to fix Christmas weapon?
Reply With Quote #9

we add the crits here

Code:
   switch(index)
   {
    case 16, 56, 58, 203, 305, 1005, 1079, 1092:  //SMG, Huntsman, Jarate, Strange SMG, Crusader's Crossbow, Festive Huntsman, Festive Crossbow, Fortified Compound
    {
     addthecrit=true;
    }
BBG_Theory 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 00:03.


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