Raised This Month: $ Target: $400
 0% 

[TFC] Laser Suit Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
Jenger
Junior Member
Join Date: May 2007
Old 06-06-2007 , 22:55   [TFC] Laser Suit Plugin
Reply With Quote #1

= Laser Suit Plugin by Jengerer =

NOTE: THIS PLUGIN IS CURRENTLY DESIGNED FOR 2FORT AND WELL ONLY, FOR TESTING PURPOSES. READ BELOW DESCRIPTION FOR DETAILS.

In 2fort, the suit spawns on the bridge, and in well, it spawns in the middle of the "bunker". This is my 2nd plugin, so feedback would be greatly appreciated!

Code:
// Laser Suit Plugin by Jengerer
//
// Description:
// This plugin places a suit at a predefined location, and when picked up,
// gives players the Laser Suit ability. When players are within a certain
// distance of the suit bearer, they are hurt at a certain rate and damage.
// When the suit-bearer is killed, the killer gets the suit. If the player
// who has the suit on kills himself, the suit is brought back to its
// spawn point.
//
// CVars:
// - amx_ls_interval  (Changes the time between shots. [DEFAULT 3 SECONDS])
// - amx_ls_damage  (Changes the damage per shot. [DEFAULT 5 DAMAGE])
// - amx_ls_glow (Changes whether suit-bearer glows. [DEFAULT 1])
// - amx_ls_distance (Changes the maximum distance for attack. [DEFAULT 1000])
// - amx_ls_limit (Changes the limit of players allowed to attack. [DEFAULT 1 PLAYER])
 
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <engine>
 
#define PLUGIN "Laser Suit"
#define VERSION "1.0"
#define AUTHOR "Jengerer"
#define SUIT_MODEL "models/y_armor.mdl"
#define SUIT_POWER "sprites/laserbeam.spr"
#define CLASSNAME "info_target"
#define GRAB_DISTANCE 50
Currently, only 2fort and well are made, because I think it's kind of inconvenient the way I made it work. If someone can let me know how I can store coordinates in a .txt or .ini and load them from within Pawn, that would be cool. Preferably, to have a .txt for each map and the coordinates can be stored inside.

Please inform me of bugs or improvements that can be made.

Quote:
Changelog:

V1.0 Released - 2fort & Well Supported Only
Attached Files
File Type: sma Get Plugin or Get Source (laser_suit.sma - 1049 views - 6.4 KB)
__________________
[IMG]http://img299.**************/img299/6947/03nesxf9.gif[/IMG]

[IMG]http://img241.**************/img241/5484/csplayerca4.jpg[/IMG]

[IMG]http://img237.**************/img237/4001/gpubcl1.jpg[/IMG]

Last edited by Jenger; 06-06-2007 at 23:35.
Jenger is offline
datwinkle
BANNED
Join Date: May 2006
Location: Virginia
Old 06-06-2007 , 23:19   Re: [TFC] Laser Suit Plugin
Reply With Quote #2

sounds cool
datwinkle is offline
Send a message via AIM to datwinkle
Jenger
Junior Member
Join Date: May 2007
Old 06-07-2007 , 08:36   Re: [TFC] Laser Suit Plugin
Reply With Quote #3

Thanks for the reply.

If anyone can test it out and let me know if there's anything I can improve on, that would be greatly appreciated. I thought about adding interchangeable abilities like speed, high jump, and stuff like that that's given on random.

Let me know, please.
__________________
[IMG]http://img299.**************/img299/6947/03nesxf9.gif[/IMG]

[IMG]http://img241.**************/img241/5484/csplayerca4.jpg[/IMG]

[IMG]http://img237.**************/img237/4001/gpubcl1.jpg[/IMG]
Jenger is offline
kmal2t
BANNED
Join Date: Apr 2006
Old 06-30-2007 , 20:40   Re: [TFC] Laser Suit Plugin
Reply With Quote #4

Aren't there several of these already with more advanced features?
kmal2t is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 07-05-2007 , 18:13   Re: [TFC] Laser Suit Plugin
Reply With Quote #5

Waiting for confirmation that it works.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
jengerer
Junior Member
Join Date: Dec 2006
Old 07-06-2007 , 11:43   Re: [TFC] Laser Suit Plugin
Reply With Quote #6

Just unapprove it. If nobody replies, it's obviously pointless to keep it up, besides, someone said there's already one with more advanced features. If this is true, I don't want to take someone else's idea.
jengerer 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 16:07.


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