Skip to content

Commit

Permalink
Merge pull request #334 from GMLambda/fix-332
Browse files Browse the repository at this point in the history
Fix #332: Weapons respawn at where they were first picked up
  • Loading branch information
ZehMatt authored Dec 15, 2024
2 parents 55276bf + 29c5903 commit 2a54f68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- Fixed: ep1_c17_00a: Don't cancel scripted_sequence on player death.
- Fixed: Weapons not properly transitioning for NPCs.
- Fixed: Entity outputs not firing in the correct order.
- Fixed: Weapons don't respawn at where they were first picked up.

0.9.25
- Improved: Hints will no longer show duplicates, instead it will renew the existing hint that has the same text.
Expand Down
3 changes: 3 additions & 0 deletions gamemode/sv_player_pickup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ function GM:RespawnObject(obj, options)
data.outputs = table.Copy(obj.EntityOutputs or {})
else
data = table.Copy(data)
-- Override pos and ang, some weapons are moved or thrown at the player.
data.pos = obj:GetPos()
data.ang = obj:GetAngles()
data.levelDesignerPlaced = true
data.options = options
end
Expand Down

0 comments on commit 2a54f68

Please sign in to comment.