Raised This Month: $60 Target: $400
 15% 

Laser/TripMine Entity


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   v3x (159)
+ARUKARI-
AlliedModders Donor
Join Date: Jul 2004
Location: Japan
Old 03-20-2006 , 22:11   Laser/TripMine Entity
Reply With Quote #1

Laser/TripMine Entity v3.18
  • Descliption:

    • Each player can set LaserMine on the wall.
    • If get "SZ_GetSpace: overflow on Client Datagram" error of you use old version. Please try v3.05 or later.

  • Installation:

    • File Locations:
      • .\addons\amxmodx\scripting\include\lasermine_ const.inc
      • .\addons\amxmodx\scripting\include\lasermine_ util.inc
      • .\addons\amxmodx\scripting\lasermine.sma
      • .\addons\amxmodx\plugins\lasermine.amxx
      • .\addons\amxmodx\config\plugins\plugin-lasermine.cfg
      • .\addons\amxmodx\data\lang\lasermine.txt

    • Modules:
      • [required]: AMXMODX v1.10.0
        * If you want to compile with 1.8.2, you can use cromchat.inc (by OciXCrom) is required. And no recycle logic is available.
      • [required]: Cstrike
      • [required]: Fakemeta
      • [required]: Hamsandwich

    • Optional:
      • If use BIOHAZARD or Zombie Plague Plugin.
        Please make re-compile for environment.
        line 2,3
        Code:
        //#define BIOHAZARD_SUPPORT
        //#define ZP_SUPPORT
      • Non-Steam is not supported.

  • Usage:
    Code:
    Admin Console command
    • lm_remove <userid>
      • - remove all mine. target user.
    • lm_give <userid>
      • - give mine. target user. (start amount.)
    Client command
    • +setlaser or +setlm
      • - ex) bind v +setlaser
      • - can set lasermine on the wall
    • +dellaser or +remlm Less than v3.14 (From v3.15, the USE key.)
      • - ex) bind j +dellaser
      • - can return lasermine in ammo.
    • buy_lasermine
      • - ex) bind "F2" "buy_lasermine"
      • - buying lasermine
    • say "/buy lasermine" or "/lm"
      • - buying lasermine
    • say "/lasermine"
      • - show help

  • Cvars: (Ver 3.x)
    PHP Code:
    // ================================================================
    // Common Settings.
    // ================================================================
    // lasermine ON/OFF (1 / 0)
    amx_ltm_enable                 "1"

    // lasermine access level (0 = all, 1 = admin only)
    amx_ltm_access                 "0"

    // lasermine mode (0 = killing laser, 1 = tripmine)
    amx_ltm_mode                 "0"

    // lasermine friendly fire. (0 = off, 1 = on)
    amx_ltm_friendly_fire         "0"

    // Round start delay time. (5 seconds)
    amx_ltm_round_delay         "5"

    // Client command mode. (0 = +USE key, 1 = +setlaser, 2 = each)
    amx_ltm_cmd_mode             "1"


    // ================================================================
    // Ammo Settings.
    // ================================================================
    // round start have ammo.
    amx_ltm_amount                 "1"

    // max have ammo and max deploy count.
    // but if buymode=0 can not use this setting.
    amx_ltm_max_amount             "2"

    // max deployed count in team.
    // Warning: The HL engine supports up to 128 laser.
    //          So the maximum number per team is limited to 64.
    //            Claymore mode displays three lasers per piece, so you are limited to 20 per team.
    amx_ltm_team_max             "10"

    // ================================================================
    // Buy system Settings.
    // ================================================================
    // can say cmd buying. 0 is off, 1 is on . (/buy lasermine or /lm)
    amx_ltm_buy_mode             "1"

    // lasermine can buying and deploying team.("ALL", "T" or "TR", "CT")
    amx_ltm_buy_team             "ALL"

    // buying lasermine cost.
    amx_ltm_buy_price             "2500"

    // stay buyzone can buying.
    amx_ltm_buy_zone            "1"

    // kill enemy +money
    amx_ltm_frag_money             "300"


    // ================================================================
    // Laser beam design Settings.
    // ================================================================
    // Laser line visiblilty (0 is invisible, 1 is visible)
    amx_ltm_laser_visible         "1"

    // Laser line color mode. (0 is team color (T=RED, CT=BLUE), 1 is GREEN)
    amx_ltm_laser_color_mode     "0"

    // Team-Color for Terrorist. default:red (R,G,B)
    amx_ltm_laser_color_t        "255,0,0"
    // Team-Color for Counter-Terrorist. default:blue (R,G,B)
    amx_ltm_laser_color_ct        "0,0,255"

    // Laser line brightness. (0 to 255)
    amx_ltm_laser_brightness     "255"

    // Laser line width. (0 to 255)
    amx_ltm_laser_width     "5"

    // Laser hit damage. (Float value!)
    amx_ltm_laser_damage        "1000.0"

    // Laser hit damage mode. (0 is frame dmg, 1 is seconds dmg)
    amx_ltm_laser_damage_mode     "0"

    // Laser hit Cool Time. (laser_damage_mode=1 only, dmg/sec default 1 sec)
    amx_ltm_laser_dps            "1"

    // Laser beam lange (float range.)
    amx_ltm_laser_range            "8192.0"

    // ================================================================
    // Laser mine design Settings.
    // ================================================================
    // Lasermines health. over 1000 is very hard mine :)
    amx_ltm_mine_health                "500"

    // glowing lasermine. (0 is off, 1 is on)
    amx_ltm_mine_glow                "1"

    // Mine glow coloer 0 = team color, 1 = green.
    amx_ltm_mine_glow_color_mode    "0"
    amx_ltm_mine_glow_color_t        "255,0,0"
    amx_ltm_mine_glow_color_ct        "0,0,255"

    // Can Broken Mines. 0 = Mine, 1 = Team, 2 = Enemy.
    amx_ltm_mine_broken                "0"        


    // Lasermine explosion radius. (Float value!)
    amx_ltm_explode_radius             "320.0"

    // Lasermine explosion damage. (on center)
    amx_ltm_explode_damage            "100"

    // ================================================================
    // Misc Settings.
    // ================================================================
    // Dead Player remove lasermine. 0 = off, 1 = on.
    amx_ltm_death_remove            "0"

    // Waiting for put lasermine. (int:seconds. 0 = no progress bar.)
    amx_ltm_activate_time            "1"

    // allow pickup mine. (0 = disable, 1 = it's mine, 2 = allow friendly mine, 3 = allow enemy mine!)
    amx_ltm_allow_pickup            "1"

    // allow shield difence.
    amx_ltm_shield_difence          "1"

    // Spark Effect.
    amx_ltm_realistic_detail        "0"

    // ================================================================
    // Claymore Settings. (Less than v3.14. From v3.15, the deleted.)
    // ================================================================
    // wire range.
    amx_ltm_cm_wire_range            "300"

    // wire width.
    amx_ltm_cm_wire_width            "2"

    // wire area zone.
    //         pitch:down 0, back 90, up 180, forward 270(-90)
    //         yaw  :left 90, right -90 
    //
    // wire area center pitch.
    amx_ltm_cm_wire_center_pitch    "220,290"

    // wire area center yaw.
    amx_ltm_cm_wire_center_yaw        "-25,25"

    // wire area left pitch.
    amx_ltm_cm_wire_left_pitch        "260,290"

    // wire area left yaw.
    amx_ltm_cm_wire_left_yaw        "30,60"

    // wire area right pitch.
    amx_ltm_cm_wire_right_pitch        "260,290"

    // wire area right yaw.
    amx_ltm_cm_wire_right_yaw        "-30,-60"

    // wire trial frequency.
    amx_ltm_cm_wire_trial_freq        "3"

    // Mine glow coloer 0 = team color, 1 = green.
    amx_ltm_cm_wire_color_mode        "0"

    // Team-Color for Terrorist. default:red (R,G,B)
    amx_ltm_cm_wire_color_t            "20,0,0"

    // Team-Color for Counter-Terrorist. default:blue (R,G,B)
    amx_ltm_cm_wire_color_ct        "0,0,20"



    // Lasermine Configuration File
    echo Executing Lasermine Configuration File


    // Bio version : amx_ltm -> bio_ltm 

  • Credits:
    Code:

  • Translation Request.
    https://forums.alliedmods.net/showthread.php?t=323127


  • Known issues.
    • Can't break of other breakable object.
    • Recycling a Damaged Lasermine.
    • Stuck of very near deployed.
    • Can't stop when you deploy C4.
    • Bug where Mines disappears when someone disconnects. (Waiting for reappearance.)
    • Using an array for my enum, so when I try to compile with 1.9.0 I get an error.
      "array sizes do not match, or destination array is too small"
      https://forums.alliedmods.net/showthread.php?t=313946




GitHub: https://github.com/AoiKagase/Amxx-Laser-TripMine-Entity

Changelog
Attached Files
File Type: zip lasermine_v318.zip (30.2 KB, 69 views)
__________________

Last edited by +ARUKARI-; 09-19-2020 at 05:58. Reason: v3.18 release.
+ARUKARI- is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-21-2006 , 10:51  
Reply With Quote #2

Did you make ALL of this yourself?
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
MattOG
Senior Member
Join Date: May 2005
Old 03-21-2006 , 11:38  
Reply With Quote #3

This seems to be a version of the old amx_tripmine plugin, with a bit of re-written code and a few "fixes??"

The mine doesn't actually explode, players are just killed by the laser that is emitted.

Credit where its due??

Anyway, v3x, i'm waiting for your port with baited breath. (that still being released)?
__________________

+Karma If I helped
MattOG is offline
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 03-21-2006 , 11:52  
Reply With Quote #4



nice in cs, good work man ;)
Deviance is offline
Pop
Member
Join Date: Mar 2006
Old 03-21-2006 , 18:06  
Reply With Quote #5

Works perfectly.
Pop is offline
T(+)rget
Senior Member
Join Date: Mar 2004
Old 03-21-2006 , 18:32  
Reply With Quote #6

Quote:
Originally Posted by MattOG
This seems to be a version of the old amx_tripmine plugin, with a bit of re-written code and a few "fixes??"

The mine doesn't actually explode, players are just killed by the laser that is emitted.

Credit where its due??

Anyway, v3x, i'm waiting for your port with baited breath. (that still being released)?
It was a conversion of what I released on AMX Mod, and no its not a simple conversion since I had written damage natives into VexdUM module which AMXX currently doesn't support without using FakeMeta which would be rather messy to code into 1 plugin.

When I find time I will start working on eFX module for AMXX which'll be similar to engine but without forward functionality since its already implemented in FakeMeta and a few other things cut.
T(+)rget is offline
+ARUKARI-
AlliedModders Donor
Join Date: Jul 2004
Location: Japan
Old 03-21-2006 , 20:16  
Reply With Quote #7

Quote:
Originally Posted by v3x
Did you make ALL of this yourself?
I have known Tripmine since AMX.

I wanted to use that Laser for the attack.

Therefore, a former code is decided to be said as Vexd_tripmine.

The codes which I wrote again are Laser, Score, Money, Progressbar, Vexd to Engine and cvar settings.
__________________
+ARUKARI- is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-21-2006 , 21:16  
Reply With Quote #8

Add credits.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
MattOG
Senior Member
Join Date: May 2005
Old 03-22-2006 , 00:08  
Reply With Quote #9

Quote:
Originally Posted by T(+)rget
It was a conversion of what I released on AMX Mod, and no its not a simple conversion since I had written damage natives into VexdUM module which AMXX currently doesn't support without using FakeMeta which would be rather messy to code into 1 plugin.

When I find time I will start working on eFX module for AMXX which'll be similar to engine but without forward functionality since its already implemented in FakeMeta and a few other things cut.
ahhh, k, just heard about it "on the grapevine", and was wondering.... tried to get the .sma off the amx forum so i could look at it, but it kept saying there was an error. Well, i'm sure it'll be done when its done ;)
__________________

+Karma If I helped
MattOG is offline
the_aking
Member
Join Date: Oct 2005
Old 04-04-2006 , 06:20  
Reply With Quote #10

can you add buyable or not cvar
and
amx_lasermine nick command to give a player
i dont want ppl will start buying it and flood the server with lasermine...
the_aking is offline
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 23:09.


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