Skip to content

Commit 75e09e6

Browse files
Create __init__.lua
1 parent a11bb41 commit 75e09e6

1 file changed

Lines changed: 118 additions & 0 deletions

File tree

ext/Server/__init__.lua

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
Events:Subscribe('Partition:Loaded', function(partition)
2+
for _, instance in pairs(partition.instances) do
3+
if instance:Is('BulletEntityData') then
4+
5+
-- https://github.com/EmulatorNexus/Venice-EBX/blob/master/Weapons/Common/Bullets/12g_Buckshot.txt
6+
local buckshotEntityGuid = Guid("50ACD447-1BCD-4363-AB61-312840D5D28B")
7+
8+
if (instance.instanceGuid == buckshotEntityGuid ) then
9+
local buckshotEntity = BulletEntityData(instance)
10+
11+
buckshotEntity:MakeWritable()
12+
13+
buckshotEntity.startDamage = 27
14+
buckshotEntity.endDamage = 7.5
15+
16+
buckshotEntity.damageFalloffStartDistance = 12
17+
buckshotEntity.damageFalloffEndDistance = 37.5
18+
19+
end
20+
21+
-- https://github.com/EmulatorNexus/Venice-EBX/blob/master/Weapons/Common/Bullets/12g_Flechette.txt
22+
local flechetteEntityGuid = Guid("A4FA6C84-FD58-4A84-9CC1-82EA53ADE4E0")
23+
24+
if (instance.instanceGuid == flechetteEntityGuid ) then
25+
local flechetteEntity = BulletEntityData(instance)
26+
27+
flechetteEntity:MakeWritable()
28+
29+
flechetteEntity.startDamage = 18.75
30+
flechetteEntity.endDamage = 12.6
31+
32+
flechetteEntity.damageFalloffStartDistance = 21
33+
flechetteEntity.damageFalloffEndDistance = 45
34+
35+
end
36+
37+
-- https://github.com/EmulatorNexus/Venice-EBX/blob/master/Weapons/Common/Bullets/12g_Frag.txt
38+
local fragEntityGuid = Guid("EF265029-3291-4544-8081-ABFFA09D3D96")
39+
40+
if (instance.instanceGuid == fragEntityGuid ) then
41+
local fragEntity = BulletEntityData(instance)
42+
43+
fragEntity:MakeWritable()
44+
45+
fragEntity.startDamage = 30
46+
fragEntity.endDamage = 7.5
47+
48+
fragEntity.damageFalloffStartDistance = 12
49+
fragEntity.damageFalloffEndDistance = 60
50+
51+
end
52+
53+
-- https://github.com/EmulatorNexus/Venice-EBX/blob/master/Weapons/Common/Bullets/12g_Frag_Pump.txt
54+
local fragPumpEntityGuid = Guid("ED005E6A-A489-4C85-BA52-67EB7A4458FB")
55+
56+
if (instance.instanceGuid == fragPumpEntityGuid ) then
57+
local fragPumpEntity = BulletEntityData(instance)
58+
59+
fragPumpEntity:MakeWritable()
60+
61+
fragPumpEntity.startDamage = 56.25
62+
fragPumpEntity.endDamage = 15
63+
64+
fragPumpEntity.damageFalloffStartDistance = 12
65+
fragPumpEntity.damageFalloffEndDistance = 60
66+
67+
end
68+
69+
-- https://github.com/EmulatorNexus/Venice-EBX/blob/master/Weapons/Common/Bullets/12g_Slug.txt
70+
local slugEntityGuid = Guid("679FD75F-EB49-4FD2-9496-9B54D73C87AC")
71+
72+
if (instance.instanceGuid == slugEntityGuid ) then
73+
local slugEntity = BulletEntityData(instance)
74+
75+
slugEntity:MakeWritable()
76+
77+
slugEntity.startDamage = 75
78+
slugEntity.endDamage = 37.5
79+
80+
slugEntity.damageFalloffStartDistance = 22.5
81+
slugEntity.damageFalloffEndDistance = 75
82+
83+
end
84+
85+
-- https://github.com/EmulatorNexus/Venice-EBX/blob/master/Weapons/Common/Bullets/12g_Slug_Pump.txt
86+
local slugPumpEntityGuid = Guid("73906759-9C12-4B2B-91C3-F42DB8BE9A1B")
87+
88+
if (instance.instanceGuid == slugPumpEntityGuid ) then
89+
local slugPumpEntity = BulletEntityData(instance)
90+
91+
slugPumpEntity:MakeWritable()
92+
93+
slugPumpEntity.startDamage = 100
94+
slugPumpEntity.endDamage = 40
95+
96+
slugPumpEntity.damageFalloffStartDistance = 22.5
97+
slugPumpEntity.damageFalloffEndDistance = 75
98+
99+
end
100+
101+
-- https://github.com/EmulatorNexus/Venice-EBX/blob/master/Weapons/Common/Bullets/40mm_Flechette.txt
102+
local flechette40mmEntityGuid = Guid("A4FA6C84-FD58-4A84-9CC1-82EA53ADE4E0")
103+
104+
if (instance.instanceGuid == flechetteEntityGuid ) then
105+
local flechette40mmEntity = BulletEntityData(instance)
106+
107+
flechette40mmEntity:MakeWritable()
108+
109+
flechette40mmEntity.startDamage = 37.5
110+
flechette40mmEntity.endDamage = 12.6
111+
112+
flechette40mmEntity.damageFalloffStartDistance = 12
113+
flechette40mmEntity.damageFalloffEndDistance = 75
114+
115+
end
116+
end
117+
end
118+
end)

0 commit comments

Comments
 (0)