AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   Subplugin Submission [ZP] Addon: Lasermine Perfect 4.3 (29/7/2019) (https://forums.alliedmods.net/showthread.php?t=302419)

Perfect Scrash 10-28-2017 14:06

[ZP] Addon: Lasermine Perfect 4.3 (29/7/2019)
 
4 Attachment(s)



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:
https://i.imgur.com/VBE2ahp.png


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


wicho 10-30-2017 13:50

Re: [ZP] Addon: Lasermine Perfect
 
Cool, nice work..

q844215805 11-03-2017 12:02

Re: [ZP] Addon: Lasermine Perfect
 
2 Attachment(s)
very nice! ty!
Attachment 166332

Attachment 166333

mapokapo 11-03-2017 17:00

Re: [ZP] Addon: Lasermine Perfect
 
1 Attachment(s)
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 :)

mapokapo 11-04-2017 08:22

Re: [ZP] Addon: Lasermine Perfect
 
Also, is it possible to make it so zombies can't use Lasermines? Thanks.

wilianmaique 11-11-2017 11:18

Re: [ZP] Addon: Lasermine Perfect
 
Nice man,

Muito bom ahahaha

toms_hardware 12-08-2017 10:46

Re: [ZP] Addon: Lasermine Perfect
 
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 - 08:34:00: [ZP] Invalid Player (201)
L 12/08/2017 - 08:34:00: [AMXX] Displaying debug trace (plugin "zp_lasermine_perfect_4.2.amxx")
L 12/08/2017 - 08:34:00: [AMXX] Run time error 10: native error (native "zp_get_user_zombie")
L 12/08/2017 - 08:34:00: [AMXX] [0] zp_lasermine_perfect_4.2.sma::Lasermine_TakeD amagePre (line 657)

Perfect Scrash 12-08-2017 16:17

Re: [ZP] Addon: Lasermine Perfect
 
1 Attachment(s)
Test:

toms_hardware 12-10-2017 05:37

Re: [ZP] Addon: Lasermine Perfect
 
Quote:

Originally Posted by Perfect Scrash (Post 2565137)
Test:

Thank you to support. It is better but we have new logs...

L 12/10/2017 - 05:53:35: [FAKEMETA] Invalid entity
L 12/10/2017 - 05:53:35: [AMXX] Displaying debug trace (plugin "zp_lasermine_zplague_4.2.amxx")
L 12/10/2017 - 05:53:35: [AMXX] Run time error 10: native error (native "set_pev")
L 12/10/2017 - 05:53:35: [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)

Perfect Scrash 12-16-2017 21:33

Re: [ZP] Addon: Lasermine Perfect
 
1 Attachment(s)
Test again:


All times are GMT -4. The time now is 09:56.

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