UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Detect headshot

broken avatar :(
Created 8 years ago
by Linoxet
0 Members and 1 Guest are viewing this topic.
2,331 views
broken avatar :(
×
broken avatar :(
Location: br
Date Registered: 10 December 2013
Last active: 2 years ago
Posts
159
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
×
Linoxet's Groups
Linoxet's Contact & Social LinksTutizillalinoxetbanguela
How can I make a script that detects if a zombie gets killed by a headshot, with any weapon?
Thanks in advance, sorry for bad english  :please:
Marked as best answer by Linoxet 8 years ago
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Signature
If you want scripts / features made for you, then contact me by PM or email / skype etc
it will cost you tho so if you have no intention of reciprocating don't even waste my time ;)
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social Links[email protected]HarryBo21HarryBo000
How can I make a script that detects if a zombie gets killed by a headshot, with any weapon?
Thanks in advance, sorry for bad english  :please:
its already stored as a property when they die, i forget what exactly

but for example on the zombie

self.damageweapon - is the weapon that hit him
self.damagemod - is the "type" of damage he took

one is for location he was hit ( like when everyone complained about my perks spamming their screen with "torso" and "head" etc lol, that was me using this, forgot to take the debug out when i released it ), i forget what it is, look in zombiemode_spawner at the zombie_damage function to find it



you can definitely find what you need if you look in the deadshot functions of my perks script
Last Edit: January 16, 2016, 03:28:11 am by Harry Bo21
broken avatar :(
×
broken avatar :(
Location: br
Date Registered: 10 December 2013
Last active: 2 years ago
Posts
159
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
×
Linoxet's Groups
Linoxet's Contact & Social LinksTutizillalinoxetbanguela
Got it, thanks!  :D
How can I change the dvar "timescale"?
I tried "SetDvar( "timescale", 0.5 );" but didn't worked

broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social Links[email protected]HarryBo21HarryBo000
Got it, thanks!  :D
How can I change the dvar "timescale"?
I tried "SetDvar( "timescale", 0.5 );" but didn't worked
isnt it like c_timescale or something like that?

go ingame, open the console and type "timescale", itll show a list of suggestions under it, check thats the right dvar name

Otherwise i dunno
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 20 September 2013
Last active: 3 years ago
Posts
130
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Signature
Stupid, but it works.
×
X0master's Groups
X0master's Contact & Social LinksslayerbeastWar_gunner12YubLannights35
Got it, thanks!  :D
How can I change the dvar "timescale"?
I tried "SetDvar( "timescale", 0.5 );" but didn't worked
i think this should work 
Code Snippet
Plaintext
setClientDvar("timescale","0.5");
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social Links[email protected]HarryBo21HarryBo000
i had guessed that something effecting the speed of the game, wont be client specific. might be tho, give it a shot
broken avatar :(
×
broken avatar :(
Location: hkHong Kong
Date Registered: 26 August 2012
Last active: 7 years ago
Posts
17
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
JustForFun119's Groups
JustForFun119's Contact & Social LinksJustForFun119
Code Snippet
Plaintext
setTimescale( 0.5 );
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social Links[email protected]HarryBo21HarryBo000


He seems to be correct, try that
broken avatar :(
×
broken avatar :(
Location: br
Date Registered: 10 December 2013
Last active: 2 years ago
Posts
159
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
×
Linoxet's Groups
Linoxet's Contact & Social LinksTutizillalinoxetbanguela
It worked, thank you guys!  ;D

 
Loading ...