Raised This Month: $ Target: $400
 0% 

[REQ] Sniper laser CS:GO


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Chesterfield
Senior Member
Join Date: Apr 2013
Old 08-17-2014 , 13:06   [REQ] Sniper laser CS:GO
Reply With Quote #1

Hello guys, i wonder if someone could make a simple plugin that adds a laser when you're playing with the awp and you use the scope.

I've seen many plugins there but i'm not sure if they work for CS:GO, maybe someone could make a fully compatible one for CS:GO? thanks in advanced
Chesterfield is offline
asdfxD
Veteran Member
Join Date: Apr 2011
Old 01-27-2015 , 06:18   Re: [REQ] Sniper laser CS:GO
Reply With Quote #2

bump.
asdfxD is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 01-27-2015 , 08:12   Re: [REQ] Sniper laser CS:GO
Reply With Quote #3

From this I added csgo support changing the css laser materials to a csgo valid materials

Try this
Attached Files
File Type: sp Get Plugin or Get Source (laser_aim.sp - 1086 views - 4.8 KB)
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.


Last edited by Franc1sco; 01-27-2015 at 08:12.
Franc1sco is offline
Send a message via MSN to Franc1sco
asdfxD
Veteran Member
Join Date: Apr 2011
Old 01-27-2015 , 08:49   Re: [REQ] Sniper laser CS:GO
Reply With Quote #4

thanks, it works! can you add an adminflag?

Last edited by asdfxD; 01-27-2015 at 09:03.
asdfxD is offline
ZASTRELIS
Veteran Member
Join Date: Nov 2010
Location: Siberia, Irkutsk
Old 06-22-2017 , 23:37   Re: [REQ] Sniper laser CS:GO
Reply With Quote #5

sorry my offtop, but what's this HaloIndex in TE_SetupBeamFollow? Thanks..
P.S. I found some halo files in materials: is it true to use in this situation?
Quote:
// PrecacheModel("materials/sprites/halo.vmt")
// PrecacheModel("materials/dev/halo_add_to_screen.vmt")

Last edited by ZASTRELIS; 06-22-2017 at 23:43.
ZASTRELIS is offline
MBf
Member
Join Date: Aug 2016
Old 06-23-2017 , 15:15   Re: [REQ] Sniper laser CS:GO
Reply With Quote #6

Quote:
Originally Posted by Franc1sco View Post
From this I added csgo support changing the css laser materials to a csgo valid materials

Try this
I have 3 ideas if I can apply ...

1. be also in the ssg
2. Go and when not the goal (for noscope)
3. Only be for the flag "a"

Thank you
__________________
PLAY.ACEARENA.RO
WWW.ACEARENA.RO

Last edited by MBf; 06-23-2017 at 15:42.
MBf is offline
ZASTRELIS
Veteran Member
Join Date: Nov 2010
Location: Siberia, Irkutsk
Old 06-24-2017 , 05:23   Re: [REQ] Sniper laser CS:GO
Reply With Quote #7

Quote:
Originally Posted by Franc1sco View Post
From this I added csgo support changing the css laser materials to a csgo valid materials

Try this
ongameframe.. very bad, I can see many lasers on 128 tickrate
ZASTRELIS is offline
_GamerX
AlliedModders Donor
Join Date: Jun 2011
Location: Fun Server
Old 06-24-2017 , 06:40   Re: [REQ] Sniper laser CS:GO
Reply With Quote #8

lol ongameframe That's the worst feature
__________________
_GamerX is offline
Send a message via ICQ to _GamerX Send a message via Skype™ to _GamerX
ZASTRELIS
Veteran Member
Join Date: Nov 2010
Location: Siberia, Irkutsk
Old 06-24-2017 , 07:01   Re: [REQ] Sniper laser CS:GO
Reply With Quote #9

Quote:
Originally Posted by _GamerX View Post
lol ongameframe That's the worst feature
Can u help me with this? https://forums.alliedmods.net/showthread.php?t=298853
ZASTRELIS is offline
_GamerX
AlliedModders Donor
Join Date: Jun 2011
Location: Fun Server
Old 06-24-2017 , 13:22   Re: [REQ] Sniper laser CS:GO
Reply With Quote #10

Quote:
Originally Posted by ZASTRELIS View Post
Here is code where you will find everything you need

PHP Code:
public Action:CreateBeam(any:client)
{
    new 
Float:f_playerViewOrigin[3];
    
GetClientAbsOrigin(clientf_playerViewOrigin);
    if(
GetClientButtons(client) & IN_DUCK)
        
f_playerViewOrigin[2] += 40;
    else
        
f_playerViewOrigin[2] += 60;

    new 
Float:f_playerViewDestination[3];        
    
GetPlayerEye(clientf_playerViewDestination);

    new 
Float:distance GetVectorDistancef_playerViewOriginf_playerViewDestination );

    new 
Float:percentage 0.4 / ( distance 100 );

    new 
Float:f_newPlayerViewOrigin[3];
    
f_newPlayerViewOrigin[0] = f_playerViewOrigin[0] + ( ( f_playerViewDestination[0] - f_playerViewOrigin[0] ) * percentage );
    
f_newPlayerViewOrigin[1] = f_playerViewOrigin[1] + ( ( f_playerViewDestination[1] - f_playerViewOrigin[1] ) * percentage ) - 0.08;
    
f_newPlayerViewOrigin[2] = f_playerViewOrigin[2] + ( ( f_playerViewDestination[2] - f_playerViewOrigin[2] ) * percentage );

    new 
color[4];
    
color[0] = GetConVarIntg_CvarRed ); 
    
color[1] = GetConVarIntg_CvarGreen );
    
color[2] = GetConVarIntg_CvarBlue );
    
color[3] = GetConVarIntg_CvarTrans );
    
    new 
Float:life;
    
life GetConVarFloatg_CvarLife );

    new 
Float:width;
    
width GetConVarFloatg_CvarWidth );
    new 
Float:dotWidth;
    
dotWidth GetConVarFloatg_CvarDotWidth );
    
    
TE_SetupBeamPointsf_newPlayerViewOriginf_playerViewDestinationg_sprite000lifewidth0.010.0color);
    
TE_SendToAll();
    
    
TE_SetupGlowSpritef_playerViewDestinationg_glowlifedotWidthcolor[3] );
    
TE_SendToAll();
    
    return 
Plugin_Continue;

You have to try the setup yourself
__________________

Last edited by _GamerX; 06-24-2017 at 13:23.
_GamerX is offline
Send a message via ICQ to _GamerX Send a message via Skype™ to _GamerX
Reply



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 16:13.


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