Forum

> > CS2D > Scripts > Headshot System
Forums overviewCS2D overview Scripts overviewLog in to reply

English Headshot System

3 replies
To the start Previous 1 Next To the start

moved Headshot System

XSmoker
User Off Offline

Quote
Hello! I want to add to script Headshot NaSH, a function that when the player kill the other player, an badge Headshot appear. Type of CrossFire. I want to know if this is possible. If possible I want a way to do this. Sorry for the errors of the translator.

And of course, always give credit to NaSH.√

Admin/mod comment

moved to scripts, made title lowercase, removed pointless "help" phrase...

old Re: Headshot System

archmage
User Off Offline

Quote
Headshot script:
1
2
3
4
5
6
7
8
9
local headshot_chance = 10 -- chance of a headshot

math.randomseed(os.time())

function headshot_check(source, victim)
	if ( math.random(1, 100) <= headshot_chance ) then
		parse("customkill "..source.." \"headshot\" "..victim)
	end
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview