Raised This Month: $ Target: $400
 0% 

[CSS/CSGO] Only Headshot


Post New Thread Reply   
 
Thread Tools Display Modes
Bara
AlliedModders Donor
Join Date: Apr 2012
Location: Germany
Old 06-08-2015 , 11:37   Re: [CSS/CSGO] Only Headshot
Reply With Quote #31

Quote:
Originally Posted by Azerja12 View Post
as an alternative to spawn protection my friend suggested only HS on a timer. Would this be possible?
I'll not add spawn protection.
http://www.sourcemod.net/plugins.php...tion=&search=1

Plugin updated to version 2.0.0
  • Plugin required now SourceMod 1.7+
  • Removed Updater
  • Removed AutoExecConfig
  • Plugin name changed ( Headshot Only -> Only Headshot )
  • Renamed cvar 'onlyhs_allow_weapon' to 'onlyhs_allow_weapons'
  • Removed cvar 'onlyhs_oneweapon'
__________________
Discord (Bara#5006) | My Plugins (GitHub)
You like my work? Support is not a crime.

Last edited by Bara; 06-08-2015 at 11:38.
Bara is offline
Anjin
Senior Member
Join Date: Apr 2015
Old 06-17-2015 , 04:25   Re: [CSS/CSGO] Only Headshot
Reply With Quote #32

Thanks for this plugin, only one problem: a map has a trigger_hurt when you fall into water and kills you by dealing 50000 damage, with this plugin enabled, nothing happens - you stay alive, even when onlyhs_allow_world is 1.

What can be done? Thanks.

Last edited by Anjin; 06-17-2015 at 04:26.
Anjin is offline
Bara
AlliedModders Donor
Join Date: Apr 2012
Location: Germany
Old 06-17-2015 , 06:13   Re: [CSS/CSGO] Only Headshot
Reply With Quote #33

Map+Game? I'll take a look in the next days.
__________________
Discord (Bara#5006) | My Plugins (GitHub)
You like my work? Support is not a crime.
Bara is offline
Anjin
Senior Member
Join Date: Apr 2015
Old 06-17-2015 , 06:24   Re: [CSS/CSGO] Only Headshot
Reply With Quote #34

CS:GO, custom map. Do I compile it for you?
Anjin is offline
Bara
AlliedModders Donor
Join Date: Apr 2012
Location: Germany
Old 06-17-2015 , 06:25   Re: [CSS/CSGO] Only Headshot
Reply With Quote #35

Yea, please.
__________________
Discord (Bara#5006) | My Plugins (GitHub)
You like my work? Support is not a crime.
Bara is offline
Anjin
Senior Member
Join Date: Apr 2015
Old 06-17-2015 , 08:00   Re: [CSS/CSGO] Only Headshot
Reply With Quote #36

Compiling takes too long at the moment, but this map should demonstrate: http://csgo.gamebanana.com/maps/175024

These are the available damage types for trigger_hurt if it's any help:
generic
crush
bullet
slash
burn
freeze
fall
blast
club
shock
sonic
energybeam
drown
paralyse
nervegas
poison
radiation
drownrecover
chemical
slowburn
slowfreeze

Last edited by Anjin; 06-17-2015 at 08:05.
Anjin is offline
Bara
AlliedModders Donor
Join Date: Apr 2012
Location: Germany
Old 06-19-2015 , 17:39   Re: [CSS/CSGO] Only Headshot
Reply With Quote #37

Thanks, should be fixed now with version 2.0.1.
__________________
Discord (Bara#5006) | My Plugins (GitHub)
You like my work? Support is not a crime.
Bara is offline
Anjin
Senior Member
Join Date: Apr 2015
Old 06-19-2015 , 18:42   Re: [CSS/CSGO] Only Headshot
Reply With Quote #38

I just tried, and nope...

I recompiled by using DMG_ACID and it works.

Other damage types that might be put into custom maps:
Code:
DMG_GENERIC     Generic damage
DMG_CRUSH     Caused by physics interaction
DMG_SLASH     Sharp objects, such as Manhacks or other NPCs attacks
DMG_BURN     Damage from fire
DMG_VEHICLE     Hit by a vehicle
DMG_FALL     Fall damage
DMG_BLAST     Explosion damage
DMG_SHOCK     Electrical damage, shows smoke at the damage position
DMG_SONIC     Sonic damage,used by the Gargantua and Houndeye NPCs
DMG_ENERGYBEAM     Laser
DMG_DROWN     Drown damage
DMG_PARALYZE     Same as DMG_POISON
DMG_NERVEGAS     Neurotoxin damage
DMG_POISON     Poison damage
DMG_ACID     Toxic chemicals or acid burns
DMG_AIRBOAT     Airboat gun damage
DMG_PLASMA     
DMG_RADIATION     Radiation
DMG_SLOWBURN
So I guess a really long IF statement or something else?

And you might as well rename:
onlyhs_allow_blood
onlyhs_allow_blood_splash
onlyhs_allow_blood_splatter
to
onlyhs_disable_blood
onlyhs_disable_blood_splash
onlyhs_disable_blood_splatter

because setting them to 1 actually disables blood, and 0 enables it.

And 4 typos: "Disalbe" instead of "Disable"

Thanks for the awesome plugin, by the way!

Last edited by Anjin; 06-19-2015 at 19:32.
Anjin is offline
Anjin
Senior Member
Join Date: Apr 2015
Old 06-21-2015 , 13:13   Re: [CSS/CSGO] Only Headshot
Reply With Quote #39

Here you go, added other damagetypes, fixed typos and renamed few cvars so they are less confusing.
Attached Files
File Type: sp Get Plugin or Get Source (onlyhs.sp - 382 views - 6.9 KB)
Anjin is offline
Anjin
Senior Member
Join Date: Apr 2015
Old 06-25-2015 , 11:44   Re: [CSS/CSGO] Only Headshot
Reply With Quote #40

Hm, this is weird. All damage triggers work EXCEPT DMG_GENERIC.

I have a map with trigger_hurt and damage type GENERIC, and it doesn't work. When I compile it with any other damagetype, like CRUSH, it works. GENERIC seems to be immune for some reason, but works if I disable this plugin.

Here are two test maps for you to try, trigcrush.bsp and trighurt.bsp, just shoot the white box and it will kill you. But for some reason DMG_GENERIC doesn't work in trighurt.bsp.
Attached Files
File Type: zip testmaps.zip (385.5 KB, 65 views)

Last edited by Anjin; 06-25-2015 at 11:59.
Anjin 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 23:58.


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