Search
Username:
Password:

Register or Reset Password

SUBMISSIONS
Counter Strike
   New Maps
   New Tutorials
   New Skins
   New GUI's
   New Sounds
   New Threads
Other
   Media
   Gamers
   Clans
   Studios
Headshot Only Mode
Added by...
Brought to you by...
Author(s): Kat_Fish widowmkr
Category: CS:S > EventScripts Mods
Notes/Usage Instructions:

Save this in a file called es_headshot_mode.txt in a folder called headshot_mode in your addons/eventscripts directory.
To load it on server start up put this into your autoexec.cfg file: es_load headshot_mode

To run it from console using mani admin plugin use:
ma_rcon es_load headshot_mode

To run it from console using your rcon password use:
rcon es_load headshot_mode

To unload it from console using mani admin plugin use:
ma_rcon es_unload headshot_mode

To unload it from console using your rcon password use:
rcon es_unload headshot_mode


-===========================================================================-

To install eventscripts mods please refer to this guide:
HOWTO: Installing scripts and EventScripts plugin
Script Code:
Block load
{
es_xsetinfo headshot_mode 1
es_xmakepublic headshot_mode 1
es_xmsg #Green [Headshot Only Mod Loaded!]
}

block unload
{
es_xsetinfo headshot_mode 0
es_xmsg #Green [Headshot Only Mod Unoaded!]
}

event round_start
{
es_xmsg #green [Headshot Only Mode Is On]
}

event player_hurt
{
if (event_var(hitgroup) notequalto 1) then do
{
es playerset health event_var(userid) 100
}
}
Added: 2 months ago
Feedback (5)
AceOfSpades77 .
I coded it.Y2M
Posted 6 days ago
Umm, why not set their health to 1000 at start of round, and if

event player_hurt
{
if (event_var(hitgroup) equalto 1) then do
{
es damage 100 32 event_var(userid)
}
}

Just a suggestion, dunno if it will work or give the kill

EDIT: That's if their not already dead
- I coded it.
.
<3 KokoroY2M
Posted 2 months ago
Posted by UKCS-Alias

What if they used the AWP? usualy a legshot does more than 100 damage and i expect it couses them to die before they get the life back. Making them start with 200 hp will be better as even the awp doesnt deal that ammount of damage. if the people dont die from the awp though then its ok anyway

About the previous post. I agree they should keep their old life as fall damage could be removed after they get hit. and his other suggestions of it are good also


To be honest the script was a rush job to help get more into the section. I will update it with the requests posted here after my exams.
UKCS-Alias .
The KnifosaurusY2M
Posted 2 months ago
What if they used the AWP? usualy a legshot does more than 100 damage and i expect it couses them to die before they get the life back. Making them start with 200 hp will be better as even the awp doesnt deal that ammount of damage. if the people dont die from the awp though then its ok anyway

About the previous post. I agree they should keep their old life as fall damage could be removed after they get hit. and his other suggestions of it are good also
Kluckmuck .
Y2M
Posted 2 months ago
Pros: Original and fun
Cons: Will be hard to kill someone, you should make it so when you don't hit someone in the head there hp should be set to what they had before, not 100
Improvements: Look Cons. Make a so you can see how many times you hit the head and how many times you missed. Also make so you can see your overall stats.
.
Y2M
Posted 2 months ago
Good work =]
Add Feedback
Provide constructive feedback. What is "constructive"?
You must login or register to access this!
Assessment
The community's verdict.
No assessments made... please vote!
You cannot assess yet!
Moderating FPSB is in your hands - when you assess a submission your vote determines its success or failure.

To vote on this submission register or login.
Stamps
This script in a nutshell...
No stamps recorded
You cannot stamp yet!
Stamps let you apply characteristics to submissions to help others understand them.

To stamp this submission register or login.
Brought to you by...
Es_Load
Get eventscripts onto FPSB!
Membership: Open House
Primary Skills: Coding/Scripting, Server Administration
Inception: 2 months ago
Vote for Studio
Like this script? Vote Es_Load for one or more monthly awards.
You must login or register to access this!
Related Scripts
Want more? Find related scripts.