Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Physics Shield and Closed Solid Field #776

Closed
43 changes: 43 additions & 0 deletions packages/phys_shield/info.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
"ID" "PHYS_SHIELD"
"Name" "Physics Shield"
"Desc" "The Physics Shield blocks all physics items like cubes."

"Item"
{
"ID" "ITEM_PHYS_SHIELD"
"Description"
{
"" "A custom fizzler created by Felix Griffin. "
"" "Physics Shields block physics items, like cubes, but not the player."
"" "Other names: Physler, Physics Repulsion Field."
}
"Version"
{
"Styles"
{
"BEE2_CLEAN" "clean"
}
}
}

"PackList"
{
"ID" "PACK_FR_PLAYER_CLIP_ELECTRIC"
"Config"
{
"File" "materials/BEE2/fizz/fourthreaper/player_clip_electric.vmt"
}
}

"PackList"
{
"ID" "PACK_FR_PHYS_SHIELD_CLEAN"
"Config"
{
"File" "materials/BEE2/fizz/phys_shield/physics_shield.vmt"
"File" "materials/BEE2/fizz/phys_shield/clean_pshield_center.vmt"
"File" "materials/BEE2/fizz/phys_shield/clean_pshield_left.vmt"
"File" "materials/BEE2/fizz/phys_shield/clean_pshield_right.vmt"
}
}

168 changes: 168 additions & 0 deletions packages/phys_shield/items/clean/editoritems.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
"Item"
{
"Type" "ITEM_PHYS_SHIELD"
"ItemClass" "ItemBarrierHazard"
"Editor"
{
"SubTypeProperty" "HazardType"
"SubType"
{
"Name" "Physics Shield"
"Model"
{
"ModelName" "laserfield.3ds"
}
"Palette"
{
"Tooltip" "PHYSICS SHIELD"
"Image" "palette/phys_shield/phys_shield.png"
"Position" "1 6 0"
}
"Sounds"
{
"SOUND_CREATED" "P2Editor.PlaceOther"
"SOUND_EDITING_ACTIVATE" "P2Editor.ExpandOther"
"SOUND_EDITING_DEACTIVATE" "P2Editor.CollapseOther"
"SOUND_DELETED" "P2Editor.RemoveOther"
}
}
"SubType"
{
"Name" "UNUSED"
"Model"
{
"ModelName" "bee2_fizz_error.3ds"
}
"Sounds"
{
"SOUND_CREATED" "P2Editor.PlaceOther"
"SOUND_EDITING_ACTIVATE" "P2Editor.Error"
"SOUND_EDITING_DEACTIVATE" "P2Editor.Correction"
"SOUND_DELETED" "P2Editor.RemoveOther"
}
}
"MovementHandle" "HANDLE_6_POSITIONS"
"DesiredFacing" "DESIRES_HORIZONTAL"
}
"Properties"
{
"ConnectionCount"
{
"DefaultValue" "0"
"Index" "1"
}
"StartEnabled"
{
"DefaultValue" "1"
"Index" "2"
}
"HazardType"
{
"DefaultValue" "0"
"Index" "3"
}
}
"Exporting"
{
"Instances"
{
"0"
{
"Name" "instances/BEE2/clean/items/phys_shield/pshield_base.vmf"
"EntityCount" "5"
}
"1"
{
"Name" "instances/BEE2/clean/items/phys_shield/pshield_model.vmf"
"EntityCount" "5"
}
}
"TargetName" "phys_shield"
"Inputs"
{
"CONNECTION_STANDARD"
{
"Activate" "instance:counter;Add"
"Deactivate" "instance:counter;Subtract"
}
"CONNECTION_HAZARD_MODEL"
{
"Activate" "instance:mdl;FireUser2"
"Deactivate" "instance:mdl;FireUser1"
}
"CONNECTION_HAZARD_BRUSH"
{
"Activate" "Enable"
"Deactivate" "Disable"
}
}
"Outputs"
{
"CONNECTION_HAZARD"
{
"Activate" "instance:out;OnUser2"
"Deactivate" "instance:out;OnUser1"
}
}
"ConnectionPoints"
{
"Point"
{
"Dir" "1 0 0"
"Pos" "2 0 0"
"SignageOffset" "1 1 0"
"Priority" "0"
}
"Point"
{
"Dir" "1 0 0"
"Pos" "2 2 0"
"SignageOffset" "1 3 0"
"Priority" "0"
}
"Point"
{
"Dir" "1 0 0"
"Pos" "2 4 0"
"SignageOffset" "1 5 0"
"Priority" "0"
}
"Point"
{
"Dir" "1 0 0"
"Pos" "2 6 0"
"SignageOffset" "1 7 0"
"Priority" "0"
}
"Point"
{
"Dir" "-1 0 0"
"Pos" "5 0 0"
"SignageOffset" "6 1 0"
"Priority" "0"
}
"Point"
{
"Dir" "-1 0 0"
"Pos" "5 2 0"
"SignageOffset" "6 3 0"
"Priority" "0"
}
"Point"
{
"Dir" "-1 0 0"
"Pos" "5 4 0"
"SignageOffset" "6 5 0"
"Priority" "0"
}
"Point"
{
"Dir" "-1 0 0"
"Pos" "5 6 0"
"SignageOffset" "6 7 0"
"Priority" "0"
}
}
"Offset" "64 64 64"
}
}
9 changes: 9 additions & 0 deletions packages/phys_shield/items/clean/properties.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"Properties"
{
"Authors" "Felix Griffin, TheDarkBomber"
"Tags" "Felix Griffin; Custom; Fizzlers"
"Icon"
{
"0" "clean/phys_shield/phys_shield.png"
}
}
55 changes: 55 additions & 0 deletions packages/phys_shield/items/clean/vbsp_config.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
"Conditions"
{
"Condition"
{
"instance" "instances/BEE2/clean/items/phys_shield/pshield_base.vmf"
"result"
{
"Pack" "PACK_FR_PLAYER_CLIP_ELECTRIC"
"Pack" "PACK_FR_PHYS_SHIELD_CLEAN"
"Pack" "PACK_BEE2_CUST_FIZZ_MDL"
"Has"
{
"Fizzler" "1"
"FR_pshield" "1"
}
"CustFizzler"
{
"ModelName" ""
"UniqueModel" "0"
"Brush"
{
"Name" "fizz"
"Left" "BEE2/fizz/phys_shield/clean_pshield_left"
"Center" "BEE2/fizz/phys_shield/clean_pshield_center"
"Right" "BEE2/fizz/phys_shield/clean_pshield_right"
"Short" "BEE2/fizz/phys_shield/physics_shield"
"Keys"
{
"classname" "trigger_portal_cleanser"
"Spawnflags" "4096" // Nothing
"visible" "1"
"usescanline" "1"
"StartDisabled" "1"
}
}
"Brush"
{
"Name" "clip"
"Left" "BEE2/fizz/fourthreaper/player_clip_electric"
"Center" "BEE2/fizz/fourthreaper/player_clip_electric"
"Right" "BEE2/fizz/fourthreaper/player_clip_electric"
"Short" "BEE2/fizz/fourthreaper/player_clip_electric"
"Nodraw" "BEE2/fizz/fourthreaper/player_clip_electric"
"Keys"
{
"classname" "func_clip_vphysics"
"Spawnflags" "2" // Ignore +USE
"solidity" "0" // Toggle
"solidbsp" "1" // Make footstep sounds work
}
}
}
}
}
}
Loading