forked from d4v3c/e2s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathe2 sentry
73 lines (59 loc) · 1.96 KB
/
e2 sentry
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
@name Aim D4-8600 SentryBot
@persist O:entity C:entity Radius
#Required Cores: Antcore, Damagecore
if (first()) {
O = owner()
C = entity()
Radius = 424
holoCreate(0)
holoModel(0, "models/hunter/tubes/circle4x4c.mdl")
holoMaterial(0, "models/weapons/v_slam/new light1")
holoColor(0,vec(255, 0, 0))
holoScale(0,vec(5, 5, 5))
holoAlpha(0, 5)
holoCreate(1)
holoModel(1, "models/props_c17/fountain_01.mdl")
holoScale(1, vec(0.25))
holoMaterial(1,"models/debug/debugwhite")
holoColor(1,vec(0, 0, 0))
holoCreate(2)
holoModel(2, "models/props_c17/fountain_01.mdl")
holoScale(2, vec(0.2))
holoMaterial(2, "models/debug/debugwhite")
holoColor(2, vec(255, 0, 0))
holoCreate(3)
holoModel(3, "models/Gibs/HGIBS.mdl")
holoScale(3, vec(2))
holoColor(3, vec(255, 0, 0))
holoCreate(4)
holoModel(4, "models/hunter/plates/plate8.mdl")
holoMaterial(4, "models/weapons/v_slam/new light1")
holoAlpha(4, 10)
holoColor(4,vec(255, 0, 0))
holoScale(4,vec(2, 2, 2))
holoCreate(5)
holoModel(5, "models/weapons/w_snip_g3sg1.mdl")
holoPos(5, holoEntity(1):toWorld(vec(0, 0, 50)))
holoMaterial(5, "models/debug/debugwhite")
holoColor(5, vec(0, 0, 0))
holoParent(1, C)
holoParent(2, C)
holoParent(3, C)
holoParent(4, C)
holoParent(5, C)
}
event tick() {
CurTime = curtime()
holoAng(0, C:toWorld(ang(0, CurTime * 300, 0)))
holoAng(1, C:toWorld(ang(0, CurTime * 450, 0)))
holoAng(4, C:toWorld(ang(0, CurTime * 100, 0)))
holoAng(5, C:toWorld(ang(0, CurTime * 100, 0)))
foreach(_, Plr:entity = players()) {
if(Plr != O & Plr:isAlive() & C:pos():distance(Plr:pos()) < Radius){
Prop = propSpawn("models/props_phx/ww2bomb.mdl", Plr:pos(), 1)
Prop:propBreak()
C:soundPlay(10, 10, "NPC_FloorTurret.ShotSounds")
holoPos(3, Plr:shootPos())
}
}
}