Boom Headshot Script

A Config Script for Counter-Strike: Source

SEX! Ok, we got your attention. We are one of the oldest mod sites on the Interwebs. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation by sending Woomaps points.
  • Post: Give Woomaps your thoughts on this Script.
  • Vote: Help Woomaps win the Monthly Awards.
  • Rate: Give this Script a rating out of 10.
  • Flag: Alert moderators and warn members of a problem with this Script.
  • Watch: Get notified when this Script is updated.
Mascot

Resistance is futile...

Sign up

Already a Bananite? Login

38 lines | 1 kb | Raw Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Boom headshot Script - Uses matties event script:

block load
{
  es_keygroupdelete boomheadshot
  es_keygroupcreate boomheadshot
}

block unload
{
  es_keygroupdelete boomheadshot
}

event player_spawn
{
  es_keycreate boomheadshot event_var(es_steamid)
  es_keysetvalue boomheadshot event_var(es_steamid) streak 0
}

event player_death
{
  if (event_var(headshot) equalto 1) do
  {
    es_xsetinfo boomstreak 0
    es_xsetinfo boomsound 0
    // add to their streak
    es_keygetvalue boomstreak boomheadshot event_var(es_attackersteamid) streak
    es_xmath boomstreak + 1
    es_keysetvalue boomheadshot event_var(es_steamid) streak server_var(boomstreak)

    // set the sound based on streak
    if (server_var(boomstreak) > 2) then es_xsetinfo boomsound "PP_voice_clips/triple-boomheadshot.wav"
    else es_xsetinfo boomsound "PP_voice_clips/doug-boomheadshot.wav"

    // only attacker and victim hear the sound
    es_cexec server_var(userid) playgamesound server_var(boomsound)
    es_cexec server_var(attacker) playgamesound server_var(boomsound)
  }

Posts

Share

Shareable Image:
Share banner
HTML embed code:
BB embed code:
Markdown embed code:

More embeddable images

Bookmark and Share

Credits

Key Authors
Mattie
Unknown

Submitter

Woomaps avatar
Woomaps Offline
Member Joined 11y
1,355 points Ranked 3476th

Woomaps
Redistributor
Are you the owner? Request Ownership
Sign up to access this!
Sign up to access this!
Sign up to access this!
Sign up to access this!

Stats

Posts
6
Views
22,247
Date Added
11y
bcp.crwdcntrl.net tracking pixel