Guest User

HLAE v2.106.0 cfg for seeing another player's / spectator's view

a guest
Sep 1st, 2020
4,018
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Notes:
  2. // - Cfg should be loaded _after_ loading the level-
  3. // - You should go into freelok mode since it only gets the player view and overrides the engine view with it, so view position and angles should be correct.
  4. // - playerIndex you can get from the first column in mirv_listentities isPlayer=1
  5. // - If the camera is not overriden, then the selected player has no view currently.
  6. // Needs a recent HLAE: https://github.com/advancedfx/advancedfx/releases
  7.  
  8. mirv_calcs handle add index playerIndex 0
  9. mirv_calcs cam add player playerCam playerIndex
  10. mirv_calcs vecAng add cam playerCam playerCam
  11. mirv_calcs fov add cam playerCam playerCam
  12.  
  13. // To change enter this:
  14. mirv_calcs handle edit playerIndex index 3
  15.  
  16. // To exit enter this:
  17. mirv_cam source calcVecAngClear
  18. mirv_cam fov calcClear
  19.  
  20. // To activate enter this:
  21. mirv_cam source calcVecAng playerCam
  22. mirv_cam fov calc playerCam
  23.  
RAW Paste Data