Garry's Mod

Garry's Mod

3,326 个评价
Enhanced ThirdPerson
6
4
2
4
3
3
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 角色扮演, 风景
文件大小
发表于
更新日期
31.048 KB
2021 年 9 月 4 日 上午 2:49
8 月 21 日 下午 7:50
6 项改动说明 ( 查看 )

订阅以下载
Enhanced ThirdPerson

描述

Features
  1. Multiple Customization Options
    • Customize Camera Angle & FOV
    • Customizable Crosshair
    • Playermodel doesn't clip through solid objects.
    • Smooth Camera Movement Option
    • Camera Sync Options
  2. Properly adjusted crosshair
  3. Presets
  4. Bind Thirdperson without using console commands!

Customization
You can customize Enhanced ThirdPerson by going to:
Spawn Menu / Utilities / User / Thirdperson
For more advanced customization settings, visit "Console commands and variables" section.

Console commands and variables
You could view almost all the varaibles using now working preset editor, but here's the full list of all the commands/variables:

Console variable/command
Type
Description
thirdperson_etp
Boolean(0/1)
Disables or enables third person mode
thirdperson_enhanced_toggle
Command
Toggles thirdperson mode
+thirdperson_etp_free
-thirdperson_etp_free
Command
Enables free-look mode while bind is pressed. Free-look mode locks your move direction allowing you to look and shoot around while going into the same direction.
thirdperson_etp_vehicles_sync
Boolean(0/1)
Disables or enables synchronisation with vehicles third person mode
thirdperson_etp_addons_sync
Boolean(0/1)
Disables or enables support of the addon that I cannot remember the name of. Syncs thirdperson_etp command with "gtvh_firstperson" command
thirdperson_etp_headpos
Boolean(0/1)
Snaps your view to your head bone. Used in "firstperson" preset
thirdperson_etp_offset_x
thirdperson_etp_offset_y
thirdperson_etp_offset_z
Number
X Y Z offset of third person camera view
thirdperson_etp_offset_aim
Number
Enables or disables aiming with a mouse. If disabled, all the view angles are controlled by three console variables below. Useful for filmmaking
thirdperson_etp_angle_x
thirdperson_etp_angle_y
thirdperson_etp_angle_z
Number(0-360 for yar roll, -90-+90 for pitch)
Pitch/yaw/roll of third person camera view angle. Works only if thirdperson_etp_offset_aim is 0
thirdperson_etp_fov
Number(0-infinity)
Thirdperson camera field of view
thirdperson_etp_smoothing
Boolean(0/1)
Thirdperson camera position smoothing. Smoothes thirdperson camera position changes which makes the motion more smooth but a bit less responsive
thirdperson_etp_smoothing_speed
Number(0-100)
Thirdperson camera position smoothing speed/strength. Controls how responsive camera position is transitioned. Higher the value - more responsive. Low values useful for cinematic filmmaking. Works only if thirdperson_etp_smoothing is 1
thirdperson_etp_bind
Number
Internal variable that is used to store the bind to toggle thirdperson. Corresponds to VK_KEY code and is used by bind control in the spawnmenu
thirdperson_etp_crouchadd
Number
Additional Z offset that is applied to thirdperson camera position when player is in crouch. Doesn't work if thirdperson_etp_headpos is 1
thirdperson_etp_crosshair
Boolean(0/1)
Enables or disables custom thirdperson crosshair
thirdperson_etp_crosshair_dot
Boolean(0/1)
Enables or disables custom thirdperson crosshair center dot. Works only if thirdperson_etp_crosshair is 1
thirdperson_etp_crosshair_style
Number(0/1/2)
Style of the thirdperson crosshair spread display. 0 - Nothing, no spread display. 1 - Cone, circle showing your spread. 2 - Lines, indicating your spread display, CS style. Works only if thirdperson_etp_crosshair is 1
thirdperson_etp_crosshair_gap
Number(0-infinity)
Thirdperson crosshair spread display center pixel gap. How far away lines/cone spread display should be from the center. Works only if thirdperson_etp_crosshair is 1 and thirdperson_etp_crosshair_style is not 0
thirdperson_etp_crosshair_size
Number(1-infinity)
Thirdperson crosshair size. How thick lines/cone and center dot are. Works only if thirdperson_etp_crosshair is 1
thirdperson_etp_crosshair_r
thirdperson_etp_crosshair_g
thirdperson_etp_crosshair_b
thirdperson_etp_crosshair_alpha
Number(0-255)
Red/green/blue/alpha components of the crosshair color. Works only if thirdperson_etp_crosshair is 1
thirdperson_etp_crosshair_outline
Boolean(0/1)
Enables or disables crosshair outline. Works only if thirdperson_etp_crosshair is 1
thirdperson_etp_crosshair_outline_r
thirdperson_etp_crosshair_outline_g
thirdperson_etp_crosshair_outline_b
thirdperson_etp_crosshair_outline_alpha
Number(0-255)
Red/green/blue/alpha components of the crosshair outline color. Works only if thirdperson_etp_crosshair is 1 and thirdperson_etp_crosshair_outline is 1

If you're familiar with source engine console variables editing, then you could do interesting stuff with these variables.
For example, here's a bind command that switches your shoulder side when you press B key.
bind b "toggle thirdperson_etp_offset_y -40 40"

Bugs
  • Camera may be "broken" by addons impacting camera, less commonly movement. If you enabled addons that include those things, it is highly propable that they will conflict with this addon.
    Dev explanation: That is due to CalcView hook override, any addon that overrides that hook and returns something might conflict with this addon. I could've changed the hook priority to high for those using ULiB but decided not to, cos the addon is not supposed to work with other addons that modify view angles. If you REALLY want some POPULAR addon to work with this addon, you could ask in comments, if I'm free and in the mood for some fixing, I'll try to make it compatible if it's possible.

Source Code
GitHub[github.com]

Feel free to file issues and send fixes/addon support pull requests there.




Please, don't add us to friends and don't leave comments on our profiles regarding the addon. If you're having problems with this addon, use either comment and/or discussion sections or file an issue on our github repository.
热门讨论 查看全部(7)
2
8 月 21 日 上午 10:06
Model rotates if you stand close to a wall
snzh
2
8 月 21 日 上午 10:05
Couple of things that could make this addon stellar
REKTMASTER17
1
2022 年 8 月 18 日 上午 8:59
置顶: THE PLAYERMODEL IN THE IMAGES
VexxdOne
309 条留言
AirBlack  [作者] 10 月 29 日 下午 9:12 
@Sherbb I’ll look into this problem soon, glanced trough that part from stormfox2, it should work but somehow doesn’t, needs more investigation. For now you could either deactivate thirdperson addon or stormfox2, if problem persists, please report the new error stack trace
AirBlack  [作者] 10 月 29 日 下午 8:57 
Conflicting with stormfox2, remove it
Sherbb 10 月 29 日 上午 10:47 
I keep getting this constantly repeated and can't switch through my weapons
Sherbb 10 月 29 日 上午 10:47 
[Enhanced ThirdPerson] lua/thirdperson_enhanced/thirdperson.lua:147: attempt to index a nil value
1. fn - lua/thirdperson_enhanced/thirdperson.lua:147
2. unknown - lua/ulib/shared/hook.lua:115
3. ShouldDrawLocalPlayer - [C]:-1
4. fn - lua/stormfox2/lib/sh_util.lua:50
5. unknown - lua/ulib/shared/hook.lua:115


[Enhanced ThirdPerson] lua/thirdperson_enhanced/thirdperson.lua:339: attempt to index a nil value
1. fn - lua/thirdperson_enhanced/thirdperson.lua:339
2. unknown - lua/ulib/shared/hook.lua:115 (x12)


[Enhanced ThirdPerson] lua/thirdperson_enhanced/thirdperson.lua:154: attempt to index a nil value
1. fn - lua/thirdperson_enhanced/thirdperson.lua:154
2. unknown - lua/ulib/shared/hook.lua:115 (x2)


[Enhanced ThirdPerson] lua/thirdperson_enhanced/thirdperson.lua:61: attempt to index a nil value
1. fn - lua/thirdperson_enhanced/thirdperson.lua:61
2. unknown - lua/ulib/shared/hook.lua:115
AirBlack  [作者] 10 月 25 日 上午 8:41 
It is strange, I'll investigate it later, maybe convar for thirdperson bind is set to some audio button key by default
Dalek 10 月 25 日 上午 7:40 
Why is it automatically set to my audio button :bo3lmso:
☆ANKO☆ 10 月 19 日 下午 4:03 
when i try to use free look it just does not work for some reason
AirBlack  [作者] 10 月 18 日 下午 10:10 
Here it is https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3509655509&searchtext=enhanced+thirdperson I explained the reason why I wouldnt add such a feature myself in comments
AirBlack  [作者] 10 月 18 日 下午 9:48 
It has this feature, every fov change is reflected, so if a weapon changes fov then thirdperson view changes fov too, but unfortunately most popular weapon packs dont change fov if it detects a thirdperson view. Some chinese guy made a fork of this addon that just zooms on right click, search for “enhanced thirdperson”
Hipxel 10 月 18 日 下午 12:23 
really like this!11!

I wish this has an option to have like a fov zoom through right click like most third person shooters.

no gmod tps mod has this feature. maybe this could be the first to have it :)