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

env_mortar_controller's vgui launcher button doesn't work #5

Open
ampreeT opened this issue Aug 13, 2020 · 3 comments
Open

env_mortar_controller's vgui launcher button doesn't work #5

ampreeT opened this issue Aug 13, 2020 · 3 comments
Labels
entity-issues engine entity-related bugs/crashes/issues map-issues map-related bugs/crashes/issues

Comments

@ampreeT
Copy link
Owner

ampreeT commented Aug 13, 2020

maps affected: bm_c2a5i
description: the target picker entity doesn't work
more info: it works in listenservers
note: after fixing, revert the edt fix

@ampreeT ampreeT added map-issues map-related bugs/crashes/issues entity-issues engine entity-related bugs/crashes/issues labels Aug 13, 2020
@Alienmario
Copy link
Collaborator

Some related properties:

  • CDynamicProp - env_mortar_controller
    • InputAttachScreen (Offset 0) (Input)(0 Bytes) - attachscreen
    • m_hVgui (Offset 1648) (Save)(4 Bytes)
  • CVGuiScreen - vgui_screen
    • m_nPanelName (Offset 856) (Save)(0 Bytes)
    • m_nAttachmentIndex (Offset 860) (Save)(4 Bytes)
    • m_fScreenFlags (Offset 868) (Save)(4 Bytes)
    • m_hPlayerOwner (Offset 872) (Save)(4 Bytes)
    • m_bAcceptsInput (Offset 844) (Save|Key)(1 Bytes) - acceptsinput
    • InputSetActive (Offset 0) (Input)(0 Bytes) - SetActive
    • InputSetInactive (Offset 0) (Input)(0 Bytes) - SetInactive

@Alienmario
Copy link
Collaborator

The VGUI fire button creates a "fire_mortar" event, which does nothing on client. We can fire this event from the server, the big issue is finding correct coordinates, which are clientside.

@ampreeT
Copy link
Owner Author

ampreeT commented Aug 30, 2024

If m_hPlayerOwner is populated, then we could perhaps do vector math based on where the player is aiming and firing the server event by checking whether if the attack flag was pressed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
entity-issues engine entity-related bugs/crashes/issues map-issues map-related bugs/crashes/issues
Projects
None yet
Development

No branches or pull requests

2 participants