Raised This Month: $ Target: $400
 0% 

[L4D & L4D2] Laser Sights


Post New Thread Reply   
 
Thread Tools Display Modes
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 11-03-2009 , 15:48   Re: [L4D] Just Laser Sights
Reply With Quote #91

Its un-needed in the particular 1.05 version

Im fixing that sentence in the initial post, thank you
AtomicStryker is offline
xHADES
Junior Member
Join Date: Nov 2009
Old 11-20-2009 , 07:17   Re: [L4D] Just Laser Sights
Reply With Quote #92

Okay this works. but is there away that when i type !laser in chatbox that all survivors will get it. and no one can turn it off except me ?

Last edited by xHADES; 11-20-2009 at 08:07.
xHADES is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 11-20-2009 , 11:38   Re: [L4D] Just Laser Sights
Reply With Quote #93

Rewrite the plugin or find someone to do it for you, i wont.
AtomicStryker is offline
Visual77
Veteran Member
Join Date: Jan 2009
Old 11-22-2009 , 06:51   Re: [L4D] Just Laser Sights
Reply With Quote #94

Here are the working codes for L4D2. Notice that laser do no longer work on pistols and melee weapons.
Only on primary weapons, and this is thanks to valve.

Code:
#define PLUGIN_VERSION    "1.0.5"
#define PLUGIN_NAME       "L4D Laser Sights Pure"

#include <sourcemod>

public Plugin:myinfo =
{
    name = PLUGIN_NAME,
    author = "AtomicStryker",
    description = "Just Laser Sights",
    version = PLUGIN_VERSION,
    url = "http://forums.alliedmods.net/showthread.php?p=877908"
};

public OnPluginStart()
{
    CreateConVar("l4d_lasersight_version", PLUGIN_VERSION, "Lasersight plugin version", FCVAR_PLUGIN|FCVAR_SPONLY|FCVAR_NOTIFY|FCVAR_DONTRECORD);
    RegConsoleCmd("sm_laser", CmdLaserOn);
    RegConsoleCmd("sm_laseron", CmdLaserOn);
    RegConsoleCmd("sm_laseroff", CmdLaseroff);    
}

CheatCommand(client, const String:command[], const String:arguments[])
{
    if (!client) return;
    new admindata = GetUserFlagBits(client);
    SetUserFlagBits(client, ADMFLAG_ROOT);
    new flags = GetCommandFlags(command);
    SetCommandFlags(command, flags & ~FCVAR_CHEAT);
    FakeClientCommand(client, "%s %s", command, arguments);
    SetCommandFlags(command, flags);
    SetUserFlagBits(client, admindata);
}

public Action:CmdLaserOn(client, args)
{ 
    {
        CheatCommand(client, "upgrade_add", "LASER_SIGHT");
    }
}

public Action:CmdLaseroff(client, args)
{ 
    {
        CheatCommand(client, "upgrade_remove", "LASER_SIGHT");
    }
}

Last edited by Visual77; 11-22-2009 at 07:01.
Visual77 is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 11-22-2009 , 09:11   Re: [L4D] Just Laser Sights
Reply With Quote #95

Oh, i had figured out the add part already. But i had't noticed theres a remove command aswell ^^

Thanks


Aaaand the version for L4D2 can be found in the first post.

Last edited by AtomicStryker; 11-22-2009 at 09:17.
AtomicStryker is offline
Visual77
Veteran Member
Join Date: Jan 2009
Old 11-22-2009 , 09:29   Re: [L4D & L4D2] Laser Sights
Reply With Quote #96

Np
Visual77 is offline
Edhmelus
Senior Member
Join Date: Aug 2009
Old 11-23-2009 , 10:24   Re: [L4D & L4D2] Laser Sights
Reply With Quote #97

Already got this ingame in L4D2 ;o
__________________


Server is using Perkmod and we are in love with the Grasshopper, Toungetwister and other things.

We are also currently recruiting (EU) people only. Going to merge with another clan soon and change from Eternal Silence.
Edhmelus is offline
The_DayWalker
New Member
Join Date: Mar 2009
Location: AL
Old 11-23-2009 , 22:58   Re: [L4D & L4D2] Laser Sights
Reply With Quote #98

The L4D2 plugin apears not to be compatible with Kigen's Anti-Cheat 1.1.9. The L4D2 pluigin also echos back that the commands are not valid, but they do work.

The L4D1 plugin is awesom it is a fav on my server.
The_DayWalker is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 11-24-2009 , 02:16   Re: [L4D & L4D2] Laser Sights
Reply With Quote #99

It should be - you have to setup Anti-Cheat to ignore Admins with the z flag, though.

Fixed a slight command oversight in the L4D2 version.
AtomicStryker is offline
Warchild
Junior Member
Join Date: Aug 2008
Location: Deutschland / NRW / Hage
Old 12-05-2009 , 17:56   Re: [L4D & L4D2] Laser Sights
Reply With Quote #100

hi i have the bug too in l4d 1
] sm_laseron
L 12/05/2009 - 23:53:01: [SM] Native "SDKCall" reported: World not allowed
L 12/05/2009 - 23:53:01: [SM] Displaying call stack trace for plugin "l4d_lasersight.smx":
L 12/05/2009 - 23:53:01: [SM] [0] Line 77, /home/groups/alliedmodders/forums/files/5/2/2/3/3/45853.attach::CmdLaserOn()
can you fix it or help me ? thx
Warchild is offline
Send a message via ICQ to Warchild Send a message via MSN to Warchild
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 05:31.


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