Skip to content

Commit

Permalink
Merge pull request #91 from bluemetaknight/master
Browse files Browse the repository at this point in the history
Added custom model for Laser Warning Receiver
  • Loading branch information
Stooberton authored Oct 6, 2023
2 parents 5f6022c + 76807df commit f473842
Show file tree
Hide file tree
Showing 12 changed files with 31 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/acf/entities/sensors/receivers/receivers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ do -- Laser Receiver
Sensors.RegisterItem("LAS-Receiver", "WARN-Receiver", {
Name = "Laser Warning Receiver",
Description = "An optical unit designed to detect laser sources and give a precise direction.",
Model = "models/jaanus/wiretool/wiretool_range.mdl",
Model = "models/bluemetaknight/laser_detector.mdl",

Mass = 25,
Health = 10,
Expand Down Expand Up @@ -136,4 +136,4 @@ do -- Radar Receiver
FOV = 145,
},
})
end
end
16 changes: 16 additions & 0 deletions materials/models/bluemetaknight/Body.vmt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"VertexLitGeneric"
{
"$baseTexture" "models/bluemetaknight/Detector_D"
"$bumpmap" "models/bluemetaknight/Detector_N"

"$surfaceprop" "metal"
"$model" "1"
"$blendtintbybasealpha" "1"

"$phong" "1"
"$phongexponent" "4"
"$phongboost" "0.5"
"$phongfresnelranges" "[0.2 0.5 1]"
"$halflambert" "1"
}

Binary file not shown.
Binary file not shown.
Binary file added materials/models/bluemetaknight/Detector_N.vtf
Binary file not shown.
13 changes: 13 additions & 0 deletions materials/models/bluemetaknight/Lens.vmt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
"VertexLitGeneric"
{
"$baseTexture" "models/bluemetaknight/Detector_D"
"$bumpmap" "models/bluemetaknight/Detector_N"

"$surfaceprop" "glass"
"$model" 1
"$translucent" 1

$envmap env_cubemap
$envmapmask "models/bluemetaknight/Detector_EnvMask"
}

Binary file added models/bluemetaknight/laser_detector.dx80.vtx
Binary file not shown.
Binary file added models/bluemetaknight/laser_detector.dx90.vtx
Binary file not shown.
Binary file added models/bluemetaknight/laser_detector.mdl
Binary file not shown.
Binary file added models/bluemetaknight/laser_detector.phy
Binary file not shown.
Binary file added models/bluemetaknight/laser_detector.sw.vtx
Binary file not shown.
Binary file added models/bluemetaknight/laser_detector.vvd
Binary file not shown.

0 comments on commit f473842

Please sign in to comment.