Raised This Month: $32 Target: $400
 8% 

Box System


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Technical/Development       
Scherzo
Senior Member
Join Date: Feb 2007
Location: Kwidzyn, Poland
Old 01-21-2012 , 06:56   Box System
Reply With Quote #1

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 )

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
Attached Files
File Type: gz Box System-dodatki.r7.tar.gz (13.0 KB, 1268 views)
File Type: sma Get Plugin or Get Source (Box.sma - 2250 views - 20.3 KB)
File Type: gz Box System.tar.gz (7.1 KB, 1234 views)

Last edited by Scherzo; 07-26-2012 at 15:30.
Scherzo is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 01-21-2012 , 09:53   Re: Box System
Reply With Quote #2

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.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
pacheco
Senior Member
Join Date: Jul 2011
Old 01-21-2012 , 11:45   Re: Box System
Reply With Quote #3

Nice.. good job Scherzo / R3X
__________________



pacheco is offline
Scherzo
Senior Member
Join Date: Feb 2007
Location: Kwidzyn, Poland
Old 01-25-2012 , 15:29   Re: Box System
Reply With Quote #4

I fixed bug with loading configuration and removed .amxx from archive.
Scherzo is offline
deadman909
Veteran Member
Join Date: Oct 2008
Old 01-25-2012 , 21:24   Re: Box System
Reply With Quote #5

The video looks cool but can you give an example on how it could help one in server?
__________________

deadman909 is offline
Send a message via MSN to deadman909 Send a message via Yahoo to deadman909
Scherzo
Senior Member
Join Date: Feb 2007
Location: Kwidzyn, Poland
Old 01-26-2012 , 04:12   Re: Box System
Reply With Quote #6

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

Last edited by Scherzo; 07-15-2012 at 17:45.
Scherzo is offline
Rirre
Veteran Member
Join Date: Nov 2006
Old 07-16-2012 , 20:34   Re: Box System
Reply With Quote #7

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.

Last edited by Rirre; 07-17-2012 at 04:01.
Rirre is offline
Scherzo
Senior Member
Join Date: Feb 2007
Location: Kwidzyn, Poland
Old 07-18-2012 , 05:15   Re: Box System
Reply With Quote #8

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

Last edited by Scherzo; 07-18-2012 at 05:16.
Scherzo is offline
Rirre
Veteran Member
Join Date: Nov 2006
Old 07-18-2012 , 11:53   Re: Box System
Reply With Quote #9

Quote:
Originally Posted by Scherzo View Post
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.

Last edited by Rirre; 07-18-2012 at 11:55.
Rirre is offline
Scherzo
Senior Member
Join Date: Feb 2007
Location: Kwidzyn, Poland
Old 07-18-2012 , 14:08   Re: Box System
Reply With Quote #10

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

Last edited by Scherzo; 07-18-2012 at 14:08.
Scherzo 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 18:16.


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