Raised This Month: $32 Target: $400
 8% 

Laser Guns v2.7.6 ( Ludwig van )


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff        Approver:   DS (30)
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 05-18-2004 , 01:38   Laser Guns v2.7.6 ( Ludwig van )
Reply With Quote #1

********************************************* *******************************
*
* Version 2.7.6 - Date: 10/16/2004
*
* Original by Eric Lidman aka "Ludwig van" <[email protected]>
* Homepage: http://lidmanmusic.com/cs/plugins.html
*
* Upgraded to STEAM and ported to AMXx by: jtp10181 <[email protected]>
* Homepage: http://www.jtpage.net
*
********************************************* *******************************

Add a laser weapon to Half-Life mod. Fire a laser beam that acts like a real weapon. Takes different damage depending what body zone it hits. All mods can use the laser, but if you run Counter-Strike, the plugin keeps track of all laser related stats in a statsme style. Laser stats restart on the first day of every month. There is FX like smoke clouds, the laserbeams themselves, explosions, laser burns where laserbeam strikes, etc. (burn decals may be an issue with latest hlds, if so, you can turn burn decals with a cvar). If you run the CS missile plugin, the lasers can shoot down the missiles. Also, stats can be tracked by AUTHID or IP address meaning now lan CS servers can take advantage of the stats. Also lasers are sensitive to the mp_friendlyfire cvar. If freindly fire is on, lasers can hurt your teammates, and if off, team-mates can be shot without damage. This plugin has built in TK punish features that can be set to light punishments, or severe.

PODBOT: If using my podbots controller, podbots use this plugin too.
*NOTE* PODBot code is untested, the podbot controller plugin needs to be updated first

Additional info:

Laser kills and damage are sent to the sever logs in the same format as normal kills and damage. A log parser (like pysychostats) should be able to take the log output of this plugin and include them in the stats output. Laser kills count on the CS scoreboard, but are only refeshed at the end of each round. This is for CS only by the way. Plugin may cause some lag at round end depending on the size and power of the server, but it never does anything to cause lag during gameplay. If its a problem, turn off the amx_laserstats_on cvar (set to 0).

Admin Commands:

amx_lasers - toggles on and off lasers enabled
amx_laserbuying - toggles on and off laser buy requirements
amx_write_laserstats - forces laser stats to be printed to file on the next map change. ejl_laser_stats.ini file is not deleted. Note that the log file produced by this command is a text file which can be posted on your website.
amx_del_laserstats - prints laser stats to file immediately then deletes ejl_laser_stats.ini and clears all laser stats from memory

Client Command:

amx_firelasergun <color> - bind a key to it and use as fire button

You can use the colors: white,red,green,blue,yellow,magenta,and cyan. If you don’t specify a color, a default color will be used. You can also specify a custom color by making one out of the 3 primary colors red, green, and blue. Precede your color # with an exclamation point, then without any spaces type three 3 digit numbers ranging from 0-255.

Example: (255 red, 10 green, 189 blue)

bind mouse1 "amx_firelasergun !255010189"

More client commands:

say /laser -- show window with info about use of laser
say /laserstats -- show window with top 15 in laserstats
say /laserstats2 -- show window with laserstats for map
say /laserstatsme -- show window with your personal laserstats

CVARs: Paste the following into your amxx.cfg to change defaults.
You must uncomment cvar lines for them to take effect

Code:
// ******************  Laser Guns Settings  ******************

//0 to disable lasers, 1 to enable lasers
//amx_luds_lasers 1

//0 - disable laserstats, 1 - enable laserstats (CS Only)
//amx_laserstats_on 1

//0 - laser shots are free, 1 - laser shots cost "amx_laser_cost" (CS Only)
//amx_laser_buy 0

//Ammount of money taken each time you shoot the laser
//amx_laser_cost 100

//Temperature at which point your laser overheats and explodes thus killing you
//amx_laser_maxtemp 3440

//Number of laser shots given per round for free to clients when "amx_laser_buy" is 0
//amx_laser_ammo 50

//Default is set to use decals so there is an appearance of a burn where a laser
//shot strikes, but because HL has some decal inconsistencies from version to version,
//the wrong decals might be used making the plugin look stupid. Set this cvar to 0
//if you are having burn decal problems
//amx_laser_burndecals 1

//Default is set to allow invisble/nearly invisible laser beams. Set to 0 so
//clients cannot set their laser invisible
//amx_laser_allowinvis 1

//if mp_friendlyfire is 1 and this cvar is set to 0, this plugin will act as if
//friendlyfire is off... even if its on.
//amx_laser_obeyffcvar 1

//if friendlyfire is on, this sets the ammount of automatic retribution for
//shooting teammates in mirror damage stlye
//	0 = no damage to team hurter
//	1 = exact mirror damage to team hurter
//	2 = double damage to team hurter
//amx_laser_tkpunish1 1

//if friendlyfire is on, this sets the type of punishment given if you kill a certain
//number of teammates detemined by the cvar amx_laser_tkpunish3. Can be set 0, 1, or 2
//	0 = no action
//	1 = kick off server
//	2 = ban for 3 hours
//amx_laser_tkpunish2 1

//if friendlyfire is on, on killing this many of your teammates, the plugin takes
//the action set by amx_laser_tkpunish2 cvar
//amx_laser_tkpunish3 3

//for the laserstats, by default this plugin tries to track players stats by AUTHID, if
//set to 1, it will use IP addresses instead. If you run a lan server, the plugin
//auto-matically choses to track by IP address.
//amx_laser_trackbyip 0

//for the laserstats, if you do the command to write the stats to a file for display
//or wait for the one that is made auto-matically at the end of each month, you
//may want to hide players personal info like thier IP address. Default is to hide
//set to 1 to show IPs or AUTHIDs
//amx_laser_showip 0

//the higher this number is set, the worse a bot's laser aim will be.
//Set to 0 for bots to have near godlike laser aim. Default is 16
//amx_laser_botaimdiffuse 16

//This plugin will automatically detect if stats_loggin.amx is running
//and output log information in the same format when a player disconnects
//Setting this to 1 will force this output even if stats_logging.amx
//is not running which is useful for other mods that do not use it.
//amx_forcestatslog 0
Changelog:

v2.7.6 - JTP10181 - 10/16/04
  • Updated for AMXModX 0.20
v2.7.5 - JTP10181 - 07/10/04
  • Made it so laser cannot be used during freezetime at start of round
  • Changed authid arrays to be 34 usable chars for future compatibility
v2.7.4 - JTP10181 - 06/08/04
  • Tweaked the help messages a little for the commands
  • Removed all \ line breaks, not supported anymore.
v2.7.3 - JTP10181 - 05/26/04
  • Changed all printed messages to use the [AMXX] tag instead of [AMX]
  • Took out warning about not being able to use it when dead. Its common sense.
  • Fixed suicide (overheat) log entry so it matches standard suicide log format.
  • Changed death message blocking to BLOCK_ONCE for better compatibility
  • Removed "redundant plugin" code as it was made useless by BLOCK_ONCE change
  • Pulled chat text out into strings to reduce redundant code and make translating easier
  • Redid the commented section with the cvars so it can be copy/pasted into a config file
  • Fixed bug where HS defined damage was ignore and victim was killed anyway
  • Made it update the scores right away instead of waiting till next round (thanks -]ToC[-Bludy)
  • Cleaned up lots of code that had redundant stuff or other weird stuff
  • Made plugin use the AMXx vault.ini instead of using its own code, might as well use AMXx.
  • Added stats_logging.amx style output if stats_loggin.amx is running, can also be enabled with a CVAR for other mods besides CS.
  • Working on non-CS support that broke with AMXx, must be a #define compile option now.
  • Removed all DoD support as it needs ot be a totally separate plugin, SidLuke is working on this.
v2.7.2 - JTP10181
  • Converted MOTD boxes to work with steam and possibly with WON still (untested)
  • Fixed all authid variables to be 32 chars to STEAMIDs are handled properly
  • Changed wc3 specific code to use the engine module for AMXx
  • Added code so the laser buying can only be enabled for CS since the money functions are only for CS in AMXx
  • Started to reorganize the code so its easier for me to follow
Below v2.7.2 was maintained by Eric Lidman

********************************************* *****************************/

In case anyone is wondering I was given rights to maintain all Luds plugins by Eric Lidman himself, except for the kamakazi plugin which I guess was claimed by Freecode if he is still around.

*** THIS WILL NOT WORK ON DoD AT ALL.
But I would like if people could try it on other mods and let me know if it works at all.

******** Engine Module REQUIRED ********

For Voting: AMXx Custom Votes
Attached Files
File Type: sma Get Plugin or Get Source (amx_ejl_laserweapon.sma - 20757 views - 65.9 KB)
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
FroXeN
Senior Member
Join Date: Apr 2004
Location: Freecode is a loser.
Old 05-18-2004 , 01:43  
Reply With Quote #2

i loved that plugin nice work
__________________
Looking for friends!!!

http://Ms-Proxy.Com Join the fun!
FroXeN is offline
Send a message via ICQ to FroXeN
St@bby
Junior Member
Join Date: Jun 2004
Old 07-02-2004 , 13:32  
Reply With Quote #3

I have assigned this to the . key and whenever I press it This error comes up and the game exits

Condition Zero hl.exe-Application Error
The instruction at "0x0f385969" referenced memory at "0x0f6495c0"
The memory could not be "read"

Help please!
St@bby is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 07-02-2004 , 18:59  
Reply With Quote #4

CZ might be having issues with one of the "messages" being sent, specifically the laser. Or it could be the engine command switching to the kinfe.

I am pming you a slightly modified version, let me know how it works.

BTW I dont have CZ to test with
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
Fluffyinsanity
New Member
Join Date: Jul 2004
Old 07-02-2004 , 23:50  
Reply With Quote #5

I tried this on normal Counter-Strike and I got the same message as St@bby did...
Fluffyinsanity is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 07-03-2004 , 19:02  
Reply With Quote #6

Well I just uploaded it again (in case it was corrupted). Then I downloaded the compile off the server and tested it and it works fine for me.
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
St@bby
Junior Member
Join Date: Jun 2004
Old 07-04-2004 , 15:26  
Reply With Quote #7

i pm'ed a reply but i'll post here too
It doesnt do anything now, no error no game crash and no laser
I tried assigning to different keys not only . so I dont think the keys have anything to do with it
St@bby is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 07-10-2004 , 15:31  
Reply With Quote #8

Updated for a small fix, see changelog.

Also new release of vote plugin to handle votes for all my plugins and anything else you want.
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
kookos
Member
Join Date: May 2004
Old 07-12-2004 , 09:47  
Reply With Quote #9

is there become model?
kookos is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 07-12-2004 , 22:52  
Reply With Quote #10

Quote:
Originally Posted by kookos
is there become model?
wha??? model? for what?
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
Reply


Thread Tools
Display Modes

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 04:48.


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