Raised This Month: $32 Target: $400
 8% 

Third Person View (actually)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay       
EFFx
Veteran Member
Join Date: Feb 2016
Location: Sγo Paulo, Brasil
Old 03-02-2022 , 21:53   Third Person View (actually)
Reply With Quote #1

Third Person View


Release: 03/02/2022
Last Update: 03/28/2022

- Description
- With this plugin you can use a new format of third view camera. Being able to see actually where you are aiming at. Also it supports as well grenades throw to the same point where you are aiming from the camera view's perspective.

Keep in mind that it has a check to see if the user/entity you are shooting at is visible from the actual player view perspective (not from the camera). There's two points happening here, one view from the camera and another from the player view himself. Both visions are "aiming" at the same spot, but if there's something between the player actual perspective and the end point of the camera, it'll stop there (avoiding non-sense shooting throw walls, when the end point is not actually visible from the player default perspective).

- Gameplay View


- Cvars
tpcamera_distance = How distant the camera will be from the player
tpcamera_right = How far right the camera will be from the player
tpcamera_up = The height of the camera
tpcamera_fraction = The fraction when the camera hits wall

- Credits
https://forums.alliedmods.net/showpo...84&postcount=9
https://forums.alliedmods.net/showpo...5&postcount=51

- Change log
Spoiler


Made with not much time, any feedback would be appreciated.
Another OBSERVATION: it recreates the default firing sounds of the game since I had to block client-sided sparks and bullet holes. So if you use a custom plugin that changes the firing sounds, I've got bad news for you.
Attached Files
File Type: sma Get Plugin or Get Source (third_camera_view.sma - 744 views - 25.4 KB)
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 04-10-2022 at 11:23.
EFFx is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 03-03-2022 , 04:11   Re: Third Person View (actually)
Reply With Quote #2

Interesting. Use clamps on the Cvars if too touchy IMHO RE:OBS. Have not looked at the code yet.
__________________
DJEarthQuake is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: Sγo Paulo, Brasil
Old 03-03-2022 , 18:49   Re: Third Person View (actually)
Reply With Quote #3

Well, not sure why would someone change the values THAT much. If so, i'm gonna let them notice possible issues and turn back to good values anyways.
I'm not getting them bugs anymore, but since it is not confirmed that the bugs doesn't happen when the cvars are changed too much, I'm gonna let the warning there.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 03-03-2022 at 18:50.
EFFx is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-04-2022 , 14:34   Re: Third Person View (actually)
Reply With Quote #4

Unless you're using them with emit_sound() or any other method of playing sounds except client_cmd(), you should precache "g_szDeploySounds" with precache_generic() instead of precache_sound().

The sounds are played client-side using client_cmd() so you don't need to waste precious resource space on them. precache_generic() does not add up to the 512 limit.
__________________

Last edited by OciXCrom; 03-04-2022 at 14:34.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
EFFx
Veteran Member
Join Date: Feb 2016
Location: Sγo Paulo, Brasil
Old 03-04-2022 , 22:49   Re: Third Person View (actually)
Reply With Quote #5

Done it. Also, fixed a weird-looking bug with the player angle not being the same as the camera.
Added too the feature of penetration of the bullets, it was stopping in the first hit point regardless it's thickness. Wrote a code that allows is again (not the same ofc, but works).

Before:



After:

__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 03-08-2022 , 14:21   Re: Third Person View (actually)
Reply With Quote #6

Didnt try it but good job
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)
JocAnis is offline
SoulWeaver16
Senior Member
Join Date: May 2021
Location: Uruguay
Old 03-09-2022 , 09:18   Re: Third Person View (actually)
Reply With Quote #7


The plugin makes you invincible to bullets, not explosions
As you can see in the photo, I was in front of the bot and the bullets bounced back ahaha
On the other hand, it's great for a way to use the third person from the character's head
SoulWeaver16 is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: Sγo Paulo, Brasil
Old 03-09-2022 , 12:10   Re: Third Person View (actually)
Reply With Quote #8

If you are using with bots, you wouldn't get hurt since the camera only gets created for normal players. Normal damage is blocked since the point of the player is different of the camera view. Also, makes no sense to make invincible to explosions.

Also what you mean by the bouncing bullets?
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
SoulWeaver16
Senior Member
Join Date: May 2021
Location: Uruguay
Old 03-11-2022 , 06:22   Re: Third Person View (actually)
Reply With Quote #9

Quote:
Originally Posted by EFFx View Post
If you are using with bots, you wouldn't get hurt since the camera only gets created for normal players. Normal damage is blocked since the point of the player is different of the camera view. Also, makes no sense to make invincible to explosions.

Also what you mean by the bouncing bullets?
Yes, when shooting the player sparks come out like it will shoot metal, I didn't know about the protection given to the player
SoulWeaver16 is offline
MayroN
Senior Member
Join Date: Aug 2017
Location: Kyiv
Old 03-16-2022 , 21:14   Re: Third Person View (actually)
Reply With Quote #10

So far this is the best version of the camera that I have seen until today)

Yes, there are nuances, I don’t argue - but everything can be fixed, right?)

Decals and all that can be done in the same way as in the first person

For example so

Code:
        message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
        write_byte(TE_GUNSHOTDECAL)
        engfunc(EngFunc_WriteCoord, origin[0])
        engfunc(EngFunc_WriteCoord, origin[1])
        engfunc(EngFunc_WriteCoord, origin[2])
        write_short(id)
        write_byte(41)
        message_end()

	message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
	write_byte(TE_WORLDDECAL)
	engfunc(EngFunc_WriteCoord, origin[0])
	engfunc(EngFunc_WriteCoord, origin[1])
	engfunc(EngFunc_WriteCoord, origin[2])
	write_byte(41)
	message_end()
Then leave blood on the enemy.

But, there is a nuance - when shooting from your friend, even when shooting at your friends is disabled, you can safely kill him ...

This is the main issue with the plugin.
__________________
• МультиМод CS • 83.222.97.124:27015

MayroN is offline
Send a message via ICQ to MayroN Send a message via Skype™ to MayroN
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:59.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode