AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D & L4D2] Laser Sights (https://forums.alliedmods.net/showthread.php?t=97946)

AtomicStryker 07-21-2009 11:16

[L4D & L4D2] Laser Sights
 
18 Attachment(s)
There are half a dozen Plugins already that deal with L4D Survivor Upgrades one way or another. Thanks to all of them, i think Fyren originally enabled it all with his l4d_mmo plugin.


This here is different ... it won't give anyone anything by default and remain silent. It will also not litter your Admin Menu.

It does however give users the sm_laseron, sm_laseroff or, simpler, the toggle command sm_laser for the Laser Sights. It also blocks the dumb "expired" messages when turning Lasers off.

Additionally, it won't break your MOTD and/or other ingame Webpages. :)


For installation put the .smx in your plugins folder.

Configuration:

l4d2_lasersight_delay (default 10.0) - How long do the commands 'cool down'



Changelog L4D:
1.0.0 - Release
1.0.1 - Now sets Survivor_Upgrades 1 by itself
1.0.2 - Major Code Screwup breaking sm_laser toggle fixed
1.0.3 - Removes Upgrades on Round end to prevent eerie things from happening
1.0.4 - Minor Bugfixing
1.0.5 - No more gamedata file needed. Unloads itself if not in versus mode
1.0.6 - updated Signatures, added Sig error logging.
1.0.7 - Linux byte Signatures (WTF)
1.0.8 - reverted to gamedata file (l4dlasersights.txt into gamedata!)



Changelog L4D2:
1.0.0 - Release
1.0.1 - fixed tiny Callback bug
1.0.2 - added command cooldown and convar


Note the Laser has actual gameplay value in L4D2 - it increases your weapons accuracy.

GM-Scorp 07-21-2009 12:52

Re: [L4D] Just Laser Sights
 
Awsome dude

Didnt think anyone would do it

[Respect] man great job

fpsbrian 07-21-2009 12:56

Re: [L4D] Just Laser Sights
 
You've made a lot of people happy!

Pontifex 07-21-2009 19:19

Re: [L4D] Just Laser Sights
 
please add cvar always_laser "1"

AtomicStryker 07-22-2009 03:57

Re: [L4D] Just Laser Sights
 
If you don't want lasers, dont install this plugin? :mrgreen:

Proton 07-22-2009 04:27

Re: [L4D] Just Laser Sights
 
Any commands are not working for me, but the plugin works:
PHP Code:

sm_laser 
L 07
/22/2009 12:22:12: [SMNative "SDKCall" reportedWorld not allowed
L 07
/22/2009 12:22:12: [SMDisplaying call stack trace for plugin "l4d_lasersight.smx":
L 07/22/2009 12:22:12: [SM]   [0]  Line 67D:\Games\Steam\steamapps\common\left 4 dead\left4dead\addons\sourcemod\scripting\l4d_lasersight.sp::CmdLaserOn()
L 07/22/2009 12:22:12: [SM]   [1]  Line 86D:\Games\Steam\steamapps\common\left 4 dead\left4dead\addons\sourcemod\scripting\l4d_lasersight.sp::CmdLaserToggle() 

Why?

My version of metamodsource is 1.7.2-hg650 & sourcemod-1.3.0-hg2745

Skorpion1976 07-22-2009 05:40

Re: [L4D] Just Laser Sights
 
I refrained from using the newest mms and sm version, because they are NOT FINAL YET. Why should I install something like that ? I use MMS 171 and SM 120 and they work perfectly. Maybe it works for you too.

AtomicStryker 07-22-2009 08:17

Re: [L4D] Just Laser Sights
 
@Proton

Well "World not allowed" ... whap map and gamemode was that


@Skorp

Maybe because SM 1.3 offers actual Client Button Hooking and Manipulation. They might be called beta but theyre stable for me. (Unlike the game/server itself haha)

Proton 07-22-2009 09:24

Re: [L4D] Just Laser Sights
 
AtomicStryker
any vanilla map and i test it in singleplayer. Why lasers work but the commands does not?

hofi02 07-22-2009 10:20

Re: [L4D] Just Laser Sights
 
it does not work, in my console it says every time "Unknown command" but it is loaded and running


All times are GMT -4. The time now is 23:25.

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