Raised This Month: $ Target: $400
 0% 

Solved [CSS] Is there a way to map the player's screen to the lens of a weapon's scope?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
cjsrk
Junior Member
Join Date: Mar 2023
Location: China
Old 04-09-2024 , 12:51   [CSS] Is there a way to map the player's screen to the lens of a weapon's scope?
Reply With Quote #1

I know you can do this in CSGO and even L4D2. As long as the value of the "basetexture" item in the vmt file of the lens is changed to _rt_SmallFB1 or _rt_FullFrameFB (it seems that _rt_Camera will also work), the lens can map the player's screen (of course, the display of the v_model will be ignored), and even Supports dynamic in-mirror magnification effect.
I wonder if it's possible with CS Source to do this? Even if the CSS shader doesn't support it well, can a plugin help achieve this effect?
Attached Thumbnails
Click image for larger version

Name:	IMG_20240410_003529.jpg
Views:	94
Size:	74.9 KB
ID:	204058   Click image for larger version

Name:	IMG_20231104_220715.jpg
Views:	105
Size:	85.7 KB
ID:	204059  

Last edited by cjsrk; 04-18-2024 at 13:26.
cjsrk is offline
fi0r1
New Member
Join Date: Apr 2024
Old 04-11-2024 , 01:34   Re: [CSS] Is there a way to map the player's screen to the lens of a weapon's scope?
Reply With Quote #2

The old engine used by Counter Strike: Source does not support those shader rendering, you can take a look at this link, which should be a similar solution to your problem.
https://github.com/fi0r1/sm-rt_camera

Last edited by fi0r1; 04-11-2024 at 01:35.
fi0r1 is offline
cjsrk
Junior Member
Join Date: Mar 2023
Location: China
Old 04-12-2024 , 13:10   Re: [CSS] Is there a way to map the player's screen to the lens of a weapon's scope?
Reply With Quote #3

Quote:
Originally Posted by fi0r1 View Post
The old engine used by Counter Strike: Source does not support those shader rendering, you can take a look at this link, which should be a similar solution to your problem.
https://github.com/fi0r1/sm-rt_camera
Thank you very much. I have successfully implemented the dynamic scope of CSS with the code linked here and the help of the code author. The ADS plugin will be updated in the future.
Attached Thumbnails
Click image for larger version

Name:	hl2 2024-04-12 13-54-01-93.jpg
Views:	74
Size:	91.3 KB
ID:	204081   Click image for larger version

Name:	hl2 2024-04-12 14-11-01-14.jpg
Views:	71
Size:	101.8 KB
ID:	204082   Click image for larger version

Name:	hl2 2024-04-12 14-07-36-57.jpg
Views:	76
Size:	94.6 KB
ID:	204083  
cjsrk is offline
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 12:43.


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