Raised This Month: $51 Target: $400
 12% 

[L4D & L4D2] Laser Sights


Post New Thread Reply   
 
Thread Tools Display Modes
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 12-22-2009 , 14:46   Re: [L4D & L4D2] Laser Sights
Reply With Quote #111

CheatCommand does server commands. You want ClientCommand.
AtomicStryker is offline
jasonbourn48
Junior Member
Join Date: Nov 2009
Old 12-22-2009 , 14:49   Re: [L4D & L4D2] Laser Sights
Reply With Quote #112

Ok so I put in ClientCommand(client, "crosshair", "0"); for !laseron. Does that seem about right for you?

"crosshair" = "1"
client archive

that's what i get in console

Last edited by jasonbourn48; 12-22-2009 at 16:06.
jasonbourn48 is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 12-22-2009 , 16:20   Re: [L4D & L4D2] Laser Sights
Reply With Quote #113

You have to read the API on how ClientCommand works. It takes one String as argument only.

ClientCommand(client, "crosshair 0");
AtomicStryker is offline
jasonbourn48
Junior Member
Join Date: Nov 2009
Old 12-22-2009 , 16:38   Re: [L4D & L4D2] Laser Sights
Reply With Quote #114

ty it works now
jasonbourn48 is offline
rambomst
SourceMod Donor
Join Date: Nov 2009
Location: Sydney, Australia
Old 01-07-2010 , 23:42   Re: [L4D & L4D2] Laser Sights
Reply With Quote #115

I have found a bug. This laser sight addon doesn't work with the German edition gun AWP.
__________________
rambomst is offline
ineedh3lp
Member
Join Date: Dec 2009
Old 01-12-2010 , 10:45   Re: [L4D & L4D2] Laser Sights
Reply With Quote #116

Hello!

What do I have to change in the sourcecode to have this working in coop mode?
ineedh3lp is offline
lexantis
Senior Member
Join Date: Jun 2009
Location: CZ
Old 01-14-2010 , 09:39   Re: [L4D & L4D2] Laser Sights
Reply With Quote #117

Quote:
Originally Posted by ineedh3lp View Post
Hello!

What do I have to change in the sourcecode to have this working in coop mode?
i would really like this in coop too
lexantis is offline
Send a message via ICQ to lexantis
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 01-14-2010 , 09:52   Re: [L4D & L4D2] Laser Sights
Reply With Quote #118

Quote:
Originally Posted by ineedh3lp View Post
Hello!

What do I have to change in the sourcecode to have this working in coop mode?

Delete this from the Source:

PHP Code:
public OnMapStart()
{
    new 
String:gamemode[64];
    
GetConVarString(FindConVar("mp_gamemode"), gamemode64);
    if (
strcmp(gamemode"versus") != 0)
    {
    new 
Handle:CVAR FindConVar("survivor_upgrades");
    
SetConVarInt(CVAR0);
    
SetFailState("[Laser] Is for Versus Mode only.");
    }

But be warned it will cause Upgrade glitches.
AtomicStryker is offline
ineedh3lp
Member
Join Date: Dec 2009
Old 01-14-2010 , 13:31   Re: [L4D & L4D2] Laser Sights
Reply With Quote #119

Thank you!
ineedh3lp is offline
dacomb
Senior Member
Join Date: Oct 2009
Old 01-18-2010 , 01:46   Re: [L4D & L4D2] Laser Sights
Reply With Quote #120

Quote:
Originally Posted by ineedh3lp View Post
Hello!

What do I have to change in the sourcecode to have this working in coop mode?
I've been using this plugin in coop mode since day one... I don't remember editing the .sp file but maybe I did... *shrug*
Although to be honest I'm not sure why you'd limit it to versus only... seems like players would bitch more in versus games than they would in coop about someone turning on laser sights.
dacomb is offline
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 00:39.


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