Raised This Month: $165 Target: $400
 41% 

Subplugin Submission [ZP] Addon: Lasermine Perfect 4.3 (29/7/2019)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Perfect Scrash
Senior Member
Join Date: Aug 2013
Location: Brazil
Old 10-28-2017 , 15:06   [ZP] Addon: Lasermine Perfect 4.3 (29/7/2019)
Reply With Quote #1



Guide:



Description:
Quote:
With this Lasermine you can custonomize any way you want using the menu (You can open with a bind or writing in say /lm);
You can change Glow/Line Color;
You can change Model that you want;
You can change Lasermine Skin;
You can change Line Sprite;
And More...

Requeriments:
Quote:
Zombie Plague (4.3, 5.0, Advance or Special)

Cvars:
Code:
// Original Lasermine Cvars
zp_ltm "1"			; Lasermine ON/OFF (1 / 0)
zp_ltm_admin_only "0"		; Lasermine access level (0 is all, 1 is admin only)
zp_ltm_max_deploy "1" 		; Max have ammo and max deploy count.
zp_ltm_dmg "200"		; Laser hit damage.
zp_ltm_health "250" 		; Lasermines health. over 1000 is very hard mine :)
zp_ltm_radius "320.0"		; Lasermine explode radius. ( it's float value)
zp_ltm_rdmg "100"		; Lasermine explode damage. ( on center )
zp_ltm_line "1"			; Lasermine line (0 is invisible, 1 is visible)
zp_ltm_glow "1"			; Lasermine Glow (0: Disable | 1: Enable)
zp_ltm_bright "255"		; Laser line brightness.
zp_ltm_ldmgmode "2"		; Laser hit damage mode. (0 is frame dmg, 1 is once dmg, 2 is seconds dmg)
zp_ltm_ldmgseconds "1"		; Seconds dmg. (dmg mode 2 only, damage / seconds default 1 sec)

// Edited Version Cvars
zp_ltm_glow_color_aleatory "1"	; Random Glow Color (0: Disable | 1: Enable)
zp_ltm_line_color_aleatory "1"	; Random Line Color (0: Disable | 1: Enable)
zp_ltm_glow_color "0 255 0" 	; Glow RGB color (If when (zp_ltm_glow_color_aleatory) stay off)
zp_ltm_line_color "255 0 0" 	; Line RGB color (If when (zp_ltm_line_color_aleatory) stay off)
zp_ltm_show_status "1"		; Show Lasermine HUD
zp_ltm_ap_for_kill_allow "1"	; Allow ap reward (0: Disable | 1: Enable)
zp_ltm_ap_for_kill_quantity "2"	; Ammo packs reward quantity
zp_ltm_autobind_enable "1"	; Auto Bind? (0: Disable | 1: Enable)
zp_ltm_ignore_frags "1"		; Ignore Frags? (0: Disable | 1: Enable)
zp_ltm_flag_acess "b"		; Lasermine Flag Access (If "zp_ltm_admin_only" is enable)
zp_ltm_menu_enable "1"		; Enable lasermine main menu (0: Disable | 1: Enable)
zp_ltm_default_model "-1"	; Default model (-1: Randonized | 0: Classic | 1: Normal | 2: Gauss | 3: Alien | 4: Perfect | 5: End of Day | 6: Kraken's Eye | 7: Eyeball | 8: Infinity Gauntlet)
zp_ltm_default_sprite "-1"	; Default sprite (-1: Randonized | 0: Normal | 1: Shock | 2: Neon | 3: Dotted | 4: 4i20 | 5: Triangle | 6: Double Line | 7: Spiral | 8 - Heartbeat | 9 - Love Heart | 10 - Am. Start | 11 - Skull)
zp_ltm_solid "0"		; Lasermine solid? (0: Disable | 1: Enable)	
zp_ltm_breakable_block "1"	; Only Owner/Zombies Can Destroy Lasermine? (0: Disable | 1: Zombies/Owner Only Can Destroy | 2: Owner Only Can Destroy)
zp_ltm_remove_distance "200.0"	; Lasermine Max Distance for remove
zp_ltm_realistic_detail "0"	; Realistic Detail [Line cuts when player pass] (0: Disable | 1: Enable)

///////////////////////////// 4.3 Version - New Cvars //////////////////////////////
zp_ltm_immediate_change "1" 	; Change Model/Skin/Glow Immediatly without replant
zp_ltm_model_menu "1"		; Change Model Menu (0: Disable | 1: Enable)
zp_ltm_skin_menu "1"		; Change Skin Menu (0: Disable | 1: Enable)
zp_ltm_default_skin_id "-1"	; Skin ID (-1: Randonized | 0 - 5: ID of Model Skin)
zp_ltm_allowed_specials "1"	; Survivor/Sniper/Berserker/Wesker/Spy Can deploy the lasermine? (0: Not | 1: Yes)
zp_ltm_mode "1"			; Lasermine Mode (0 - Tripmine (Simple Explode) | 1 - Lasermine)
zp_ltm_knockback "1"		; Explosion Knockback? (0 - No | 1 - Only Zombies | 2 - Affect Owner too | 3 - All Players)
zp_ltm_start_ammo "0"		; Start Ammo of Lasermine (ONLY IN EXTRA ITEM VERSION !!)		

// Game Mode Cvars 
zp_ltm_enable_in_infection "1" // Allowed Lasermine in Infection Mode
zp_ltm_enable_in_multi "1" // Allowed Lasermine in Multi-infection Mode
zp_ltm_enable_in_swarm "1" // Allowed Lasermine in Swarm Mode
zp_ltm_enable_in_plague "1" // Allowed Lasermine in Plague Mode
zp_ltm_enable_in_nemesis "1" // Allowed Lasermine in Nemesis Mode
zp_ltm_enable_in_survivor "1" // Allowed Lasermine in Survivor Mode

// Cvars for ZP 50 / Advance / Special Only
zp_ltm_enable_in_armageddon "1" // Allowed Lasermine in Armageddon Mode

// Cvars for ZP Advance/Special Only
zp_ltm_enable_in_sniper "1" // Allowed Lasermine in Sniper Mode
zp_ltm_enable_in_assassin "1" // Allowed Lasermine in Assassin Mode
zp_ltm_enable_in_custom "1" // Allowed Lasermine in Custom Mode

// Cvars for ZP Special Only
zp_ltm_enable_in_berserker "1" // Allowed Lasermine in Berserker Mode
zp_ltm_enable_in_predator "1" // Allowed Lasermine in Predator Mode
zp_ltm_enable_in_wesker "1" // Allowed Lasermine in Wesker Mode
zp_ltm_enable_in_bombardier "1" // Allowed Lasermine in Bombardier Mode
zp_ltm_enable_in_spy "1" // Allowed Lasermine in Spy Mode
zp_ltm_enable_in_dragon "1" // Allowed Lasermine in Dragon Mode

Configuring and Install:
Fist at all you need edit .sma file to configure for your main plugin and set to a extra item mode

Example:

I use Zombie Plague Special and i want to set the lasermine for zp special only and in a extra item mode. I needed to make this:

Find:

Code:
// Uncomment your Main Plugin Version
#define ZP_43 // Zombie Plague 4.3
//#define ZP_50 // Zombie Plague 5.0
//#define ZP_ADVANCE // Zombie Plague Advance
//#define ZP_SPECIAL // Zombie Plague Special


// You want a lasermine like a extra item? 
// If yes uncomment "#define EXTRA_ITEM_VERSION"
//#define EXTRA_ITEM_VERSION
#define LM_COST 10 // Price of lasermine in a extra item menu
Change to:
Code:
// Uncomment your Main Plugin Version
//#define ZP_43 // Zombie Plague 4.3
//#define ZP_50 // Zombie Plague 5.0
//#define ZP_ADVANCE // Zombie Plague Advance
#define ZP_SPECIAL // Zombie Plague Special


// You want a lasermine like a extra item? 
// If yes uncomment "#define EXTRA_ITEM_VERSION"
#define EXTRA_ITEM_VERSION
#define LM_COST 10 // Price of lasermine in a extra item menu
Now i compile the plugin and install.

How to Install????

Put:

Quote:
.amxx file in plugins directory (cstrike/addons/amxmodx/plugins)
.cfg in configs directory (cstrike/addons/amxmodx/configs)
.txt in lang directory (cstrike/addons/amxmodx/data/lang)
Any resources directory (models, sprites and sound) in a cstrike directory

Change Logs:
Code:
* 1.0:
	- First Version.
* 1.1:
	- Fixed bug that Lasermine Dont Works.
	- Show Lasermine Owner Name.
	- Make Random Color Of Glow/Line in raibom style (When Enable).
* 1.2:
	- Fixed Bug: When Player Die and Lasermine dont removed
	- Fixed Bug: Cant Plant If your Lasermine destroyed one time
* 1.3:
	- Added: Solid Mode
* 1.4:
	- Fixed Some Bugs
	- Added Natives and Forwards
* 2.0:
	- Fixed Some Error Logs.
* 2.1:
	- Fixed Some Bugs.
	- Added More Cvars for Easily Config.
* 2.2:
	- Fixed More Error Logs
	- Added Lasermine Main Menu for Personal Configuration
* 2.3:
	- Fixed bug when R,G,B are equal to 0 for make line invisible
	- Fixed bug when some time radius crashes the server
	- New Main Menu Options (Choose Sprites/Models)
* 3.0:
	- Added More Models
	- Added Lang Support
* 3.1:
	- Added More Sprites
* 3.2/3.3:
	- Fixed More Error Logs
	- Added More Cvars for Easily Config.
* 3.4:
	- Fixed More Error Logs
	- Added Model "Perfect Lasermine"
* 4.0:
	- Fixed Some error logs
	- Fixed Small bug when plant lasermine and lasermine does not stay in the wall
	- Added one Cvar for define the max distance for remove the Lasermine
	- Added mode for lasermine can kill entities (Like Oberon Boss and Others)
* 4.1:
	- Improved Code
	- Fixed Lang
* 4.2:
	- Added more Models/Sprites for Lasermine
	- Added Realistic Detail of Lasermine (Cut the laser when it passes over)
	- End of Style "Rainbow" for Reduce Lag
	- Fixed Native/Cvar Error Logs
	- Improved Code
	- Fixed Forward "zp_fw_lm_planted_pre"
	- Removed Native "zp_get_lasermine_id"
	- Removed CZ Tutor Print (Because some steam players have bug when show tutor in screen)
* 4.3:
	- Fixed Error Log
	- Fixed Neon Color Line Sprite (Color are rights. Now white color are white color even and not yellow color)
	- Improved Dotted Line Sprite (More Dotts are appears now)
	- Added cvars for enable lasermine in certain gamemode.
	- Added Skin System
	- Removed Red Eye Model
	- Alien 2 (Dark Alien) are now skin of Alien 1
	- Added Eyeball and Infinity Gauntlet LM Model
	- Now are 9 models in 1 mdl (Need Update Resources)
	- Some with Sprites - 10 sprites in 1 .spr (Need Update Resources)
	- Added Sprites: Heartbeat, Love Heart, Amazing Stars, Skull
	- Added Remove Glow Option (In choose glow menu)
	- Updated Lang
	- Added Extra Item Configuration 
	- Added ZP Version Configuration
	- Added Many Cvars (See the ltm_cvars.cfg)
	- Added Lasermine Mode (Simple Explode or Normal lasermine)


Line Sprite List:



Screenshots (4.2 Version):

Video (4.2 Version):



Donate:
If you want to donate for my works to encourage me to continue with the work feel free to donate
Donate Here

Attached Files
File Type: zip ZP Lasermine Perfect 4.2.zip (970.1 KB, 98 views)
File Type: zip ZP Lasermine Perfect 4.3.zip (2.77 MB, 274 views)
File Type: sma Get Plugin or Get Source (zp_lasermine_perfect_4.3.sma - 355 views - 85.1 KB)
File Type: txt lasermine_perfect_43.txt (17.8 KB, 154 views)
__________________

Last edited by Perfect Scrash; 07-29-2019 at 22:36. Reason: 4.3 Update 29/7
Perfect Scrash is offline
Send a message via Skype™ to Perfect Scrash
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 10-30-2017 , 14:50   Re: [ZP] Addon: Lasermine Perfect
Reply With Quote #2

Cool, nice work..
wicho is offline
q844215805
New Member
Join Date: Mar 2017
Location: CHINA
Old 11-03-2017 , 13:02   Re: [ZP] Addon: Lasermine Perfect
Reply With Quote #3

very nice! ty!
Click image for larger version

Name:	11.png
Views:	762
Size:	7.3 KB
ID:	166332

Click image for larger version

Name:	122.png
Views:	697
Size:	40.7 KB
ID:	166333
q844215805 is offline
mapokapo
Junior Member
Join Date: Aug 2015
Old 11-03-2017 , 18:00   Re: [ZP] Addon: Lasermine Perfect
Reply With Quote #4

Thank you so much! This is exactly what I needed!

I also took my time to make a better data/lang file that has improved English translations.

It's up to you if you want to add it to the original thread, but I'll use it myself anyways
Attached Files
File Type: txt lasermine_perfect.txt (6.2 KB, 274 views)
mapokapo is offline
mapokapo
Junior Member
Join Date: Aug 2015
Old 11-04-2017 , 09:22   Re: [ZP] Addon: Lasermine Perfect
Reply With Quote #5

Also, is it possible to make it so zombies can't use Lasermines? Thanks.
mapokapo is offline
wilianmaique
Member
Join Date: Nov 2016
Old 11-11-2017 , 12:18   Re: [ZP] Addon: Lasermine Perfect
Reply With Quote #6

Nice man,

Muito bom ahahaha
__________________
Everything in life is learned.
wilianmaique is offline
Send a message via Skype™ to wilianmaique
toms_hardware
New Member
Join Date: Oct 2017
Old 12-08-2017 , 11:46   Re: [ZP] Addon: Lasermine Perfect
Reply With Quote #7

Hi, great job, i have some problems. Can somebody help me please? Thanks.

L 12/07/2017 - 00:05:24: [FAKEMETA] Invalid entity
L 12/07/2017 - 00:05:24: [AMXX] Displaying debug trace (plugin "zp_lasermine_perfect_4.2.amxx")
L 12/07/2017 - 00:05:24: [AMXX] Run time error 10: native error (native "pev")
L 12/07/2017 - 00:05:24: [AMXX] [0] zp_lasermine_perfect_4.2.sma::Lasermine_Knock back (line 858 )
L 12/07/2017 - 00:05:24: [AMXX] [2] zp_lasermine_perfect_4.2.sma::Lasermine_Think (line 634)

L 12/07/2017 - 03:43:18: [FAKEMETA] Invalid entity
L 12/07/2017 - 03:43:18: [AMXX] Displaying debug trace (plugin "zp_lasermine_perfect_4.2.amxx")
L 12/07/2017 - 03:43:18: [AMXX] Run time error 10: native error (native "set_pev")
L 12/07/2017 - 03:43:18: [AMXX] [0] zp_lasermine_perfect_4.2.sma::Lasermine_Think (line 599)

L 12/08/2017 - 084:00: [ZP] Invalid Player (201)
L 12/08/2017 - 084:00: [AMXX] Displaying debug trace (plugin "zp_lasermine_perfect_4.2.amxx")
L 12/08/2017 - 084:00: [AMXX] Run time error 10: native error (native "zp_get_user_zombie")
L 12/08/2017 - 084:00: [AMXX] [0] zp_lasermine_perfect_4.2.sma::Lasermine_TakeD amagePre (line 657)
toms_hardware is offline
Perfect Scrash
Senior Member
Join Date: Aug 2013
Location: Brazil
Old 12-08-2017 , 17:17   Re: [ZP] Addon: Lasermine Perfect
Reply With Quote #8

Test:
Attached Files
File Type: sma Get Plugin or Get Source (zp_lasermine_zplague_4.2.sma - 247 views - 69.0 KB)
__________________
Perfect Scrash is offline
Send a message via Skype™ to Perfect Scrash
toms_hardware
New Member
Join Date: Oct 2017
Old 12-10-2017 , 06:37   Re: [ZP] Addon: Lasermine Perfect
Reply With Quote #9

Quote:
Originally Posted by Perfect Scrash View Post
Test:
Thank you to support. It is better but we have new logs...

L 12/10/2017 - 05:535: [FAKEMETA] Invalid entity
L 12/10/2017 - 05:535: [AMXX] Displaying debug trace (plugin "zp_lasermine_zplague_4.2.amxx")
L 12/10/2017 - 05:535: [AMXX] Run time error 10: native error (native "set_pev")
L 12/10/2017 - 05:535: [AMXX] [0] zp_lasermine_zplague_4.2.sma::Lasermine_Think (line 604)

L 12/10/2017 - 06:05:54: [FAKEMETA] Invalid entity
L 12/10/2017 - 06:05:54: [AMXX] Displaying debug trace (plugin "zp_lasermine_zplague_4.2.amxx")
L 12/10/2017 - 06:05:54: [AMXX] Run time error 10: native error (native "engfunc")
L 12/10/2017 - 06:05:54: [AMXX] [0] zp_lasermine_zplague_4.2.sma::Lasermine_Think (line 639)
toms_hardware is offline
Perfect Scrash
Senior Member
Join Date: Aug 2013
Location: Brazil
Old 12-16-2017 , 22:33   Re: [ZP] Addon: Lasermine Perfect
Reply With Quote #10

Test again:
Attached Files
File Type: sma Get Plugin or Get Source (zp_lasermine_zplague_4.2.sma - 327 views - 69.0 KB)
__________________
Perfect Scrash is offline
Send a message via Skype™ to Perfect Scrash
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 20:41.


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