Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
You could probably simulate TraceHull by making a new function using TraceLine, but I haven't thought of a good way to implement it.
In that case, would it be possible to create a temporary object at c_thirdpersonshoulderoffset and set its GetOrigin?
This would be a huge help in developing a third-person aiming mode
I have created a beta mod that uses player.EyePosition to align cam_idealyaw with the aiming position in third-person view. If you're interested in trying it out or providing feedback on possible improvements, I’d be happy to share the mod with you
& if it's just a temporary object, you might need to set some conditions to remove it with "cam.Kill()" when a player no longer uses it, to do a regular cleanup on the spawned "info_target" entity.
I implemented this method, but the screen movement wasn't smooth, so I had to give up. Thank you for your advice
If you don't mind, may you share the function on how it looks like?
@Interneted
I successfully made TraceLine function like TraceHull. Look forward to a new third-person correction addon that I'll be uploading to the workshop
-Original TarceLine code:
-TraceLine code that functions similarly to TraceHull
I have attached an image that clearly shows the improvements. This should be enough explanation for general users