Overlays

Please post any questions about developing your plugin here. Please use the search function before posting!
User avatar
BackRaw
Senior Member
Posts: 537
Joined: Sun Jul 15, 2012 1:46 am
Location: Germany
Contact:

Overlays

Postby BackRaw » Fri Feb 26, 2016 7:30 am

Hi everybody,

Is there a tutorial of how to create some overlays and use them with SP (CSS/CSGO)? If not, I'd much appreciate it if someone could write on :D

Thanks y'all!
My Github repositories:

Source.Python: https://github.com/backraw
User avatar
iPlayer
Developer
Posts: 590
Joined: Sat Nov 14, 2015 8:37 am
Location: Moscow
Contact:

Postby iPlayer » Sun Feb 28, 2016 3:41 pm

What do you mean by overlays? Screen overlays? If so, you just execute a client command
r_screenoverlay <path to vmt-file>
To remove overlay, you execute
r_screenoverlay off
Image /id/its_iPlayer
My plugins: Map Cycle • Killstreaker • DeadChat • Infinite Jumping • TripMines • AdPurge • Bot Damage • PLRBots • Entity AntiSpam

Hail, Companion. [...] Hands to yourself, sneak thief. Image
User avatar
BackRaw
Senior Member
Posts: 537
Joined: Sun Jul 15, 2012 1:46 am
Location: Germany
Contact:

Postby BackRaw » Mon Feb 29, 2016 8:25 am

iPlayer wrote:What do you mean by overlays? Screen overlays? If so, you just execute a client command
r_screenoverlay <path to vmt-file>
To remove overlay, you execute
r_screenoverlay off


Exactly! Thanks a bunch. How can I set their position?
My Github repositories:

Source.Python: https://github.com/backraw
User avatar
iPlayer
Developer
Posts: 590
Joined: Sat Nov 14, 2015 8:37 am
Location: Moscow
Contact:

Postby iPlayer » Mon Feb 29, 2016 9:33 am

I'm afraid you can't. VMT-file will be stretched and fill the whole screen. Plus you only can set one overlay at a time. Might look into env_screenoverlay entity too.
Basically if you want a red circle in the bottom right, you create 1920x1080 overlay, draw a circle in the bottom right and pray client doesn't have 4:3 resolution.
Image /id/its_iPlayer
My plugins: Map Cycle • Killstreaker • DeadChat • Infinite Jumping • TripMines • AdPurge • Bot Damage • PLRBots • Entity AntiSpam

Hail, Companion. [...] Hands to yourself, sneak thief. Image
User avatar
BackRaw
Senior Member
Posts: 537
Joined: Sun Jul 15, 2012 1:46 am
Location: Germany
Contact:

Postby BackRaw » Mon Feb 29, 2016 9:41 am

iPlayer wrote:I'm afraid you can't. VMT-file will be stretched and fill the whole screen. Plus you only can set one overlay at a time. Might look into env_screenoverlay entity too.
Basically if you want a red circle in the bottom right, you create 1920x1080 overlay, draw a circle in the bottom right and pray client doesn't have 4:3 resolution.


Great info, thank you very much.
My Github repositories:

Source.Python: https://github.com/backraw

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 137 guests