Skip to content

Conversation

@PedritoGMG
Copy link
Contributor

What the name says
Each player's unique perspective (same icons)

@PedritoGMG PedritoGMG closed this Jul 8, 2025
@PedritoGMG PedritoGMG reopened this Jul 8, 2025
Now instead of being seen from a point_viewcontrol, it is now seen from the viewmodel with a point_camera and vgui_screen for more immersion
Comment on lines +157 to +167
camera.AcceptInput("SetOn", "", null, null)
// workaround for networking bug
SetPropInt(camera, "m_nTransmitStateOwnedCounter", 1)
// needed for camera to get networked for everyone
local network_dummy = Ware_SpawnEntity("handle_dummy",
{
origin = cameraOrigin
})
local camera_link = Ware_CreateEntity("info_camera_link")
SetPropEntity(camera_link, "m_hCamera", camera)
SetPropEntity(camera_link, "m_hTargetEntity", network_dummy)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can someone tell me if this is really necessary and why?. I have put it more for fear of unexpected problems

Comment on lines +282 to +314
function SetJackpotViewModel(player) {
local viewmodel = GetPropEntity(player, "m_hViewModel")
if (viewmodel)
{
SetPropBool(player, "m_Local.m_bDrawViewmodel", false)

local pos = viewmodel.GetOrigin()
local ang = viewmodel.GetAbsAngles()
local screenSize = 24

local offset = ang.Forward() * 8.0
- ang.Up() * (screenSize / 2.0)
- ang.Left() * (screenSize / 2.0)
local angFacing = QAngle(-ang.Pitch(), ang.Yaw() + 180.0, ang.Roll())

local screen = Ware_SpawnEntity("vgui_screen",
{
origin = pos + offset,
angles = angFacing,
panelname = "pda_panel_spy_invis",
overlaymaterial = material_tv,
width = screenSize,
height = screenSize
})

SetEntityParent(screen, viewmodel)
}
else
{
Ware_PassPlayer(player, true)
}
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a better way to center the vgui_screen on the viewmodel without it being seen differently in the other viewmodels?

@PedritoGMG
Copy link
Contributor Author

If there are problems with this last change, just revert it ede7489
:(

@tilderain
Copy link
Contributor

tilderain commented Oct 27, 2025

Good minigame
Few issues
If playing on soldier with min viewmodels, the dispenser is offscreen :(
There is visible stutter every time there's a new icon added

breencast-2025-10-26_17.34.28.mp4

@PedritoGMG
Copy link
Contributor Author

PedritoGMG commented Oct 27, 2025

If playing on soldier with min viewmodels, the dispenser is offscreen :(

I already know about that issue, I still don’t have a solution, and if it can’t be fixed, I’ll just remove this feature.
#170 (comment)

There is visible stutter every time there's a new icon added

This should be fixed now and look correct for people using cl_interp 0 as well as those using cl_interp 0.1 (Default)
7f17f15

Renamed some variables for better clarity.
Changed the way it checks for going out of bounds and when teleporting.
Icons that don’t move now skip the check.
Increased the timer duration to prevent visible teleportation.
Moved the SlotMachine to better align with the icons so teleports aren’t visible.

Many thanks to Rain for testing! Hopefully, it works properly now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants