AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Laser/TripMine Entity (https://forums.alliedmods.net/showthread.php?t=25819)

+ARUKARI- 03-20-2006 22:11

Laser/TripMine Entity
 
12 Attachment(s)
Laser/TripMine Entity v3.32
  • 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.9.0 or Higher.(The end of support for v1.8.2.)
        * 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:

    • ArkShine                : Laser/Tripmine for weaponmod

    • Vexd,Buzz_KIll        : Vexd_TripMine

    • Cheap_Suit        : Radius_Damage

    • GameGuard        : /lm, amx_ltm_ff,cbt,delay ideas.

    • s3r                        : unlagging tests.

    • DevconeS                : Weaponmod (Mirror)

    • rian18                : Feedback

    • elmariolo                : Feedback

    • ZaX                        : Feedback, Recycling Logic.

    • and more...



  • 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

v3x 03-21-2006 10:51

Did you make ALL of this yourself?

MattOG 03-21-2006 11:38

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)?

Deviance 03-21-2006 11:52

:lol:

nice in cs, good work man ;)

Pop 03-21-2006 18:06

Works perfectly.

T(+)rget 03-21-2006 18:32

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.

+ARUKARI- 03-21-2006 20:16

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.

v3x 03-21-2006 21:16

Add credits.

MattOG 03-22-2006 00:08

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 ;)

the_aking 04-04-2006 06:20

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...

+ARUKARI- 04-04-2006 23:01

Quote:

Originally Posted by the_aking
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...

ok It was changed to buy it by the chat.
/buy lasermine

Because I am busy, a test isn't completed.

techwg 04-09-2006 13:53

What i have dreamed of in a game is Claymores . . . can you or someone make an adition so you can (if you wish) place a claymore which will look the same, but have no laser beam and you hit a key eg +boom and it comes up with a text menu press 1,2,3,4,5 ,6 all etc so you can detenate your bombs and get a kill ? This would be fantastic The blast radious would have to be increasd to get the realism out of it.

MattOG 04-10-2006 04:07

Quote:

Originally Posted by techwg
What i have dreamed of in a game is Claymores . . . can you or someone make an adition so you can (if you wish) place a claymore which will look the same, but have no laser beam and you hit a key eg +boom and it comes up with a text menu press 1,2,3,4,5 ,6 all etc so you can detenate your bombs and get a kill ? This would be fantastic The blast radious would have to be increasd to get the realism out of it.

only a niggly thing, but aren't claymore's set of by radius, (i.e. when someone is close they go off automatically). anyway, there is a plugin called satchel charges if you look, which do what you're after.

techwg 04-10-2006 04:15

Claymores can be either set off by an automatic trigger, ie Wire etc or by a manual detenation ie hand button, But i might look for these satchul charges when i get home tonight

v3x 04-19-2006 12:58

Quote:

Originally Posted by v3x
Add credits.


+ARUKARI- 04-21-2006 09:52

Quote:

Originally Posted by v3x
Quote:

Originally Posted by v3x
Add credits.


Is it no good by the thing written under the image?("Credit:Vexd & Buzz_KIll")

If that isn't useful.
Please tell me how to write it.

v3x 04-21-2006 11:54

Sorry. I didn't see that before.

Thanks.

Yo Daddy 04-24-2006 19:10

Using It And its quite a Hit On My Server 8)

Also You Might wanna tell people when you have 10 or more tripmines up, the server becomes laggy. But otherwise i see no flaws in your pugin.

It might also be helpful if you provided a help document that can be opened in the motd also.

Nice mod thou man!

-YD

+ARUKARI- 05-17-2006 07:21

update
 
Version 1.2Beta2 Released
Contents of renewal are described at the top.

Arkshine 05-18-2006 05:41

Quote:

Plugin failed to compile! Please try contacting the author.

Welcome to the AMX Mod X 1.70-300 Compiler.
Copyright (c) 1997-2005 ITB CompuPhase, AMX Mod X Team

/home/users/amxmodx/public_html/forums/files/lasermine1.2beta2_955.sma(410) : error 001: expected token: ")", but found "{"

1 Error.
Could not locate output file /home/groups/amxmodx/public_html/compiled3/lasermine1.2beta2_955.amx (compile failed).
Line 410 :

Code:

        else if (equali(said,"^"/buy_lasermine^"") {
Should be :
Code:

        else if (equali(said,"^"/buy_lasermine^"")) {

;)

+ARUKARI- 05-18-2006 05:49

Quote:

Originally Posted by arkshine
Quote:

Plugin failed to compile! Please try contacting the author.

Welcome to the AMX Mod X 1.70-300 Compiler.
Copyright (c) 1997-2005 ITB CompuPhase, AMX Mod X Team

/home/users/amxmodx/public_html/forums/files/lasermine1.2beta2_955.sma(410) : error 001: expected token: ")", but found "{"

1 Error.
Could not locate output file /home/groups/amxmodx/public_html/compiled3/lasermine1.2beta2_955.amx (compile failed).
Line 410 :

Code:

        else if (equali(said,"^"/buy_lasermine^"") {
Should be :
Code:

        else if (equali(said,"^"/buy_lasermine^"")) {

;)

:oops:
ok now uploaded fix source
thanks

Nine_Coronas 06-06-2006 12:12

i got a problem... when i try to use the lasermine commands like amx_lasermine_cost
its comes up as a unknown command... the laser mines work but i want to be able to set the max 5 and the cost 100.... and i cant do it for some reason... HELP!

SweatyBanana 06-06-2006 12:13

Code:

amx_cvar amx_lasermine_cost 500

Nine_Coronas 06-06-2006 12:41

thx got it

Mulan 06-08-2006 10:27

I have a problem:

if I use the plugin from first post, i cant chat and I cant buy lasermines.
if I use the second download, i can use the lasermines without to buy it.

PlZ Help

+ARUKARI- 06-09-2006 07:25

Quote:

Originally Posted by Mulan
I have a problem:

if I use the plugin from first post, i cant chat and I cant buy lasermines.
if I use the second download, i can use the lasermines without to buy it.

PlZ Help

version1.0 is not support chat command
version1.2beta2-1 is support. But, because it is an beta version, it can't assert that there is no bug.

1.2Beta3 is attached here.
I want it to ascertain whether a problem solves it with this.

Mcoy 06-09-2006 10:40

Love this plugin! Thanks!

A humble request: Could you make it so only a certain amount of player on each team can buy this each round? Kind of like awp restriction - "too many ppl on your team...".

To answer your question: Yes, the new version (the one above) took care of the problem with chat disabled and other bugs.

+ARUKARI- 06-10-2006 02:00

Quote:

Originally Posted by Mcoy
Love this plugin! Thanks!

A humble request: Could you make it so only a certain amount of player on each team can buy this each round? Kind of like awp restriction - "too many ppl on your team...".

Mmm. It thinks that it is a good idea.
But, it takes time to make it. :?
I want you to wait until the next version appears.

Quote:

To answer your question: Yes, the new version (the one above) took care of the problem with chat disabled and other bugs.
Thank you for reporting it. :D

voivod 06-10-2006 07:26

i think the lasermine should be hl style, also someone could support a model for it

xavion 06-10-2006 11:29

Can u make a fix so you can bind the /buy_lasermine ? Would make my day so much easier ;)

Mulan 06-10-2006 18:54

okay works...
little problem... i cant bind it... if i bind "say /buy_lasermine" on a key, dobt works...

Mcoy 06-11-2006 09:26

Quote:

Originally Posted by Mulan
okay works...
little problem... i cant bind it... if i bind "say /buy_lasermine" on a key, dobt works...

Same here.

Mulan 06-14-2006 14:46

*bump* :oops:

Yo Daddy 06-14-2006 18:38

Quote:

Originally Posted by Mcoy
Quote:

Originally Posted by Mulan
okay works...
little problem... i cant bind it... if i bind "say /buy_lasermine" on a key, dobt works...

Same here.

I'll take a look at the souce code and see if I can find a fix 8)

-YD

Agret 06-18-2006 05:41

Quote:

Originally Posted by +ARUKARI-
Quote:

Originally Posted by v3x
Quote:

Originally Posted by v3x
Add credits.


Is it no good by the thing written under the image?("Credit:Vexd & Buzz_KIll")

Quote:

Originally Posted by v3x
Sorry. I didn't see that before.

I didn't see it either until I read the message pointing out exactly where it was, I think it should be at the top of the post or something.

jittress 07-08-2006 03:43

Re: LaserMine Entity ERROR!
 
ok i know i might be a lil stupid but i need an example plz
heres my log of the error and it only happens on the lasermine
L 07/08/2006 - 03:19:05: [ENGINE] Invalid entity 101
L 07/08/2006 - 03:19:05: [AMXX] Run time error 10 (plugin "lasermine.amxx") - debug not enabled!
L 07/08/2006 - 03:19:05: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 07/08/2006 - 03:19:05: [ENGINE] Invalid entity 101
L 07/08/2006 - 03:19:05: [AMXX] Run time error 10 (plugin "lasermine.amxx") - debug not enabled!
L 07/08/2006 - 03:19:05: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).

can some 1 plz help me fix this

Mcoy 07-08-2006 05:30

Re: LaserMine Entity
 
Quote:

Originally Posted by Agret
I didn't see it either until I read the message pointing out exactly where it was, I think it should be at the top of the post or something.

I saw it.

Karko 07-08-2006 18:46

Re: LaserMine Entity
 
Eny possibility to have this work with other mods than CS? Since the idea is so great I wish I could use this with The Specialists. Good work btw.

cobra1012 08-27-2006 00:22

Re: LaserMine Entity
 
I KEEP ON TRYING IT BUT IT COMES UP AS [AMXX] Plugin file open error (plugin "lasermine.amx")

Ben wilkins 10-05-2006 13:59

Re: LaserMine Entity
 
Is it possbible to make it so that when someone dies, there lasers do not disapear?


All times are GMT -4. The time now is 20:18.

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