-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDamage_Log_Tracer.txt
33 lines (32 loc) · 989 Bytes
/
Damage_Log_Tracer.txt
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
@name This was Made on a Phone
@persist Holos
if(first()){
runOnKeys(owner(),1)
Holos=0
function void entity:traceShot(Index) {
local H=holoCreate(Index)
local Target=This:aimPos()
local EyePos=This:shootPos()
holoModel(Index,"models/hunter/plates/plate8x8.mdl")
holoScaleUnits(Index,vec(EyePos:distance(Target),2,2))
holoAng(Index,This:eyeAngles())
holoDisableShading(Index,1)
holoPos(Index,EyePos-((EyePos-Target)/2))
holoColor(Index,vec(255,0,0))
}
function void entity:holoClone(Index){
E=holoCreate(Index,This:pos(),vec(1),This:angles(),This:getColor())
holoModel(Index,This:model())
E:animate(This:getAnimation(),1)
}
}
if(keyClkPressed()=="f" && keyClk(keyClk())==1){
local T=owner():aimEntity()
if(T:isPlayer()){
T:traceShot(Holos)
T:holoClone(300-Holos)
Holos+=1
} else {
print("Not Looking at Player")
}
}