AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   Box System (https://forums.alliedmods.net/showthread.php?t=176678)

Scherzo 01-21-2012 06:56

Box System
 
3 Attachment(s)
Box System

Its advanced box editor with friendly API. It create invisible entity with size and position defined by admin which can affect with players and other entities.

API contains 5 events (Box forwards):
on enter
on leave
on touch - every frame

on created
on deleted

Plugin manage adding, editing, removing and storage of boxes. Your plugins manage what is effect of contact any entity with.


See in action:
http://www.youtube.com/watch?v=9vv0K8bU3YU


Its is not scripting area, so i only include really simple examples of addons.
For customize your type of box you need separate plugin which use Box forwards. List of available types is build from files in configs/Box/types/ directory.

Usage:
command "box" to open menu and then
- left mouse click - catch corner
- mouse & keyboard - move corner
- Ctrl-Z - undo last change (duck and radio1 :P)

Requirements:
  • VDF Module
  • savable configs/Box/ folder (chmod 777)


Usage:

SVN:
http://amxx.pl/svn/box/listing.php?r...2F&language=en

Attached .sma won`t compile via Web Compiler, please do it yourself on local machine.


Thanks Astro for research & ideas!

Changes:
v1.0.2
+ box id
+ .inc file
* Astro's bug: empty class name cause freeze
- mark working box with implode
* copy working box type to menu

nikhilgupta345 01-21-2012 09:53

Re: Box System
 
I haven't looked at the code, but I have to admit that the User Interface on this is very nice. I like how do you can just drag the corner to where you like rather than incrementing x, y, and z values through a menu.

Good job.

pacheco 01-21-2012 11:45

Re: Box System
 
Nice.. good job Scherzo / R3X

Scherzo 01-25-2012 15:29

Re: Box System
 
I fixed bug with loading configuration and removed .amxx from archive.

deadman909 01-25-2012 21:24

Re: Box System
 
The video looks cool but can you give an example on how it could help one in server?

Scherzo 01-26-2012 04:12

Re: Box System
 
This plugin alone do nothing interesting for players. Power of this API are your addons which define interaction with these boxes.

In `dodatki` package you can see example `Leczenie` which heals players in area of this class. Also there are example of stopping grenade barrier. Delayed Slapper example hit player if stay in area too long. Usefulness of this is limited by your imagination :)

Rirre 07-16-2012 20:34

Re: Box System
 
Box_StopGrenades doesn't work. The box is saved at the location were I created it, but I can throw nades thru it.
This is how my amxmodx/configs/Box/<mapname>.vdf looks:
Code:

"Box"
{
        "StopGrenade"
        {
                "origin"
                {
                        "X" "2549.1"
                        "Y" "39.5"
                        "Z" "1320.4"
                }
                "mins"
                {
                        "X" "-202.8"
                        "Y" "-191.8"
                        "Z" "-40.7"
                }
                "maxs"
                {
                        "X" "202.8"
                        "Y" "191.8"
                        "Z" "40.7"
                }
        }
}

EDIT: Want to request a option/type to give players specific nades in the area all the time until they walk out from it.

Scherzo 07-18-2012 05:15

Re: Box System
 
I will check when i reach home, but it was working during my last checking. I see you have properly configured core. Are you sure extension plugin is installed and successfull loaded?

@request
i would try prepare snippet for you

Rirre 07-18-2012 11:53

Re: Box System
 
Quote:

Originally Posted by Scherzo (Post 1752854)
I will check when i reach home, but it was working during my last checking. I see you have properly configured core. Are you sure extension plugin is installed and successfull loaded?

@request
i would try prepare snippet for you

Yepp, its running without any warnings or errors. It just doesn't prevent/remove grenades from the area it is located.

Scherzo 07-18-2012 14:08

Re: Box System
 
I tested on my server and it still working. Maybe your area is too small to stop nade. This extension slows down flying grenades to completly stop, but not instant halt / removing nades.

@Refill grenades request, try this: http://amxx.pl/svn/box/listing.php?r...5919d16b531ce7


All times are GMT -4. The time now is 21:34.

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