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

Huntsman crits?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
retsam
Veteran Member
Join Date: Aug 2008
Location: so-cal
Old 08-24-2009 , 22:19   Huntsman crits?
Reply With Quote #1

Ive been meaning to inquire about this for a while and keep forgeting...

Since ive been seeing others posting about it, I figured id ask...

Does anyone know how you can get huntsman to crit? Or if that is even possible? I am not even sure huntsman by default ever even crits, except for headshots, so that may be why it never works in all-crits servers...

Just curious if its fixable.
retsam is offline
Wolfbane3PG
Junior Member
Join Date: Jul 2009
Old 08-25-2009 , 15:29   Re: Huntsman crits?
Reply With Quote #2

As far as I know the Huntsman is not even designed to crit (aside from HS).
The function TF2_CalcIsAttackCritical determines whether an attack will be critical or not, but shooting with the Huntsman doesn't even trigger that function (I was just testing this earlier today is why I know that)

That being said, with a little creative coding you could probably make the arrows critted, but it could get tricky. There are some plugins that modify damage, so maybe just 3x the Huntsman damage and add the crit particle effect to it?

Almost more trouble than it's worth I'd think
Wolfbane3PG is offline
BrutalGoerge
AlliedModders Donor
Join Date: Jul 2007
Old 08-25-2009 , 15:41   Re: Huntsman crits?
Reply With Quote #3

that sux. you can make the sniperrifle crit with CalcIsAttackCrit.
__________________
My Pluggies If you like, consider to me.
BrutalGoerge is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 08-25-2009 , 15:47   Re: Huntsman crits?
Reply With Quote #4

I'm pretty sure it's because the huntsman uses a different function when it fires than the other weapons. This would cause it to not fire the CalcIsAttackCritical forward.
bl4nk is offline
retsam
Veteran Member
Join Date: Aug 2008
Location: so-cal
Old 08-25-2009 , 15:56   Re: Huntsman crits?
Reply With Quote #5

Yeah it doesnt fire the calcisattackcritical.

Ive noticed while playing, huntsmen on a default server never crits, except when its a headshot.

I didnt think it was possible anyways, but wanted to ask.

But yeah, if I cared that much, I could just make arrows do like 3x damage and display the crits particle and sound on the victim, but thats probably too much effort.

We run a 100% crits server so....im trying to decide what to do to compensate huntsmen users. I may just try to find the most simplistic code to do 2x or 3x damage and probably not bother with the particle or sound.

Last edited by retsam; 08-25-2009 at 15:58.
retsam is offline
EHG
Senior Member
Join Date: May 2009
Location: 127.0.0.1
Old 08-25-2009 , 22:50   Re: Huntsman crits?
Reply With Quote #6

A while back before anyone made a working 100% crits plugin I took this code out of the pyro++ plugin and made my own 100% crits plugin.
It multiplies the damage and sends particles and sound to both attacker and victim. You can even modify the angle of crits.

I couldn't find the source of the latest version I made. The latest one has cvars to enable crits for public or admin only but this should be enough for you to modify and use for the huntsman.

I have included the latest compiled version if anyone wants it. However if I were you I wouldn't take it because I could be some malicious hacker making up stories about not having source and giving you some horrible plugin.
If I find the source I'll update this post.
Attached Files
File Type: sp Get Plugin or Get Source (CritMod.sp - 195 views - 3.2 KB)
File Type: smx CritMod_Latest.smx (6.0 KB, 160 views)
EHG is offline
naris
AlliedModders Donor
Join Date: Dec 2006
Old 08-26-2009 , 00:36   Re: Huntsman crits?
Reply With Quote #7

Quote:
Originally Posted by EHG View Post
I couldn't find the source of the latest version I made.
I knew there was a reason I keep EVERYTHING in subversion
naris is offline
EHG
Senior Member
Join Date: May 2009
Location: 127.0.0.1
Old 08-26-2009 , 05:11   Re: Huntsman crits?
Reply With Quote #8

I also found an event for when a player is hit by a Sniper's Huntsman arrow.

arrow_impact

Might be useful.
EHG is offline
eXDee
Member
Join Date: May 2009
Old 09-12-2009 , 03:51   Re: Huntsman crits?
Reply With Quote #9

Quote:
Originally Posted by EHG View Post
A while back before anyone made a working 100% crits plugin I took this code out of the pyro++ plugin and made my own 100% crits plugin.
It multiplies the damage and sends particles and sound to both attacker and victim. You can even modify the angle of crits.

I couldn't find the source of the latest version I made. The latest one has cvars to enable crits for public or admin only but this should be enough for you to modify and use for the huntsman.

I have included the latest compiled version if anyone wants it. However if I were you I wouldn't take it because I could be some malicious hacker making up stories about not having source and giving you some horrible plugin.
If I find the source I'll update this post.
Hey,
The plugin won't compile, and the compiled one you provide won't load.
Can you update this?

Or is there another solution?
eXDee is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 09-12-2009 , 05:38   Re: Huntsman crits?
Reply With Quote #10

Working on a fix:
https://bugs.alliedmods.net/show_bug.cgi?id=3927
bl4nk 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 09:20.


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