Raised This Month: $ Target: $400
 0% 

Entity Remover


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose       
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 09-06-2007 , 12:10   Entity Remover
Reply With Quote #1

Entity Remover v1.0

I'm not sure exactly why you would want this ... but it was in the suggestions/requests so there we are.

Purpose: Removes any entity listed in the map's config file.

Configs located in:
configs_directory/entityremover/mapname.txt
(Default: /addons/amxmodx/configs/entityremover/mapname.txt )

The removing should be done on any "game will restart in" message. So *should* always be before game begins.

If anyone knows of a better time to run the removal, please tell me.
I'd rather learn something than have this approved.


Updates:
v1.1 - 06 / 09 / 07 - Changed config directory to use get_configsdir()

v1.2 - 07 / 09 / 07 - Extended config path array to allow map names > 9 characters
Attached Files
File Type: sma Get Plugin or Get Source (entity_remover.sma - 1382 views - 971 Bytes)

Last edited by purple_pixie; 09-07-2007 at 07:56. Reason: Fixing the attachments
purple_pixie is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-06-2007 , 12:12   Re: Entity Remover
Reply With Quote #2

Don't post .amxx file.

Don't hardcode file path.

__________________

Last edited by Arkshine; 09-06-2007 at 12:14.
Arkshine is offline
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 09-06-2007 , 14:47   Re: Entity Remover
Reply With Quote #3

Having never attached an sma before I didn't realise that the forum auto-compiled it and gave you the "get plugin" link - I thought you had to attach both.
I took that off soon as I saw there were two copies ^^.

How exactly do you make a path without hard-coding it?
"Don't hard-code" is all well and good, but if it's not too much to ask, how else can I do it?

EDIT: get_configsdir() ?

I'll re-attach with that.

p.s. Thanks for the info.

Last edited by purple_pixie; 09-06-2007 at 14:56.
purple_pixie is offline
nr1lolz
Junior Member
Join Date: Sep 2007
Location: Sweden
Old 09-07-2007 , 07:11   Re: Entity Remover
Reply With Quote #4

OMG hurray thank you very much

Well am gonna explain why i wanted this ..
Its for the hide n seek mod, i wanted to remove objetives.
i know there is allready this
http://forums.alliedmods.net/showthread.php?p=463407
but that one removes the timer also.

but i also wanted to be able to remove some vents or breakable things
that t cant destroy because they dont have any weapons on hide n seek.
And on some maps there is more thats in the way, like the elevator in as_oilrig, because you want some blocks on the walls there.

The only thing i need for my server now is a way for the round to end and the terrorist team to win when the timer gets to 0,
but i have allready asked for it here
http://forums.alliedmods.net/showthr...t=56941&page=4

As i said before a big thanks to you ^^
nr1lolz is offline
nr1lolz
Junior Member
Join Date: Sep 2007
Location: Sweden
Old 09-07-2007 , 07:42   Re: Entity Remover
Reply With Quote #5

Bug report!

This is what happened.

I started with removing these from as_olirig,
info_vip_start
func_vip_safetyzone
func_button

and it works.

then i removed these from cs_747,
monster_scientist
info_hostage_rescue
func_hostage_rescue
hostage_entity
func_breakable

it works also.

but when i got to cs_assault and added these,
monster_scientist
info_hostage_rescue
func_hostage_rescue
hostage_entity
func_breakable

it didnt work :/
still it works on the 2 other maps when i change back to them.

these are my custom plugins if it will help,
hidenseek.amxx
pingkicker.amxx
ultimate_rslot.amxx
removeweapons.amxx
amx_ejl_weapon_restrict.amxx
ghostchat.amxx
blockmaker_v3.51.amxx
Hats02.amxx
customflashlight.amxx
entity_remover.amxx

I hope you can solve the problem, thanks

and am sorry that my english is kinda bad :/
nr1lolz is offline
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 09-07-2007 , 07:51   Re: Entity Remover
Reply With Quote #6

Found it.

The filename string was only set to take 50 characters - this strips the t off of the end, so it looks for "cs_assault.tx" ...

Re-attached.

Last edited by purple_pixie; 09-07-2007 at 08:16.
purple_pixie is offline
nr1lolz
Junior Member
Join Date: Sep 2007
Location: Sweden
Old 09-07-2007 , 08:04   Re: Entity Remover
Reply With Quote #7

Nice
it works now.
thanks again man ^^
nr1lolz is offline
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 09-07-2007 , 08:16   Re: Entity Remover
Reply With Quote #8

Oh, and I've posted in Alka's thread with the cvar changes you wanted.
I don't know if it's "the done thing" to post changes for other people's plugin when they're still around, but hey.
purple_pixie is offline
nr1lolz
Junior Member
Join Date: Sep 2007
Location: Sweden
Old 09-07-2007 , 08:56   Re: Entity Remover
Reply With Quote #9

Woohaa nice your my hero
thanks ^^
Now am going crazy because i have a working hns server xD
nr1lolz is offline
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 09-07-2007 , 09:01   Re: Entity Remover
Reply With Quote #10

Hehe, no worries.

I like modding.
I only just started, really, and I'm just getting to the point where I can write a plugin without looking up every command on the funcwiki.

Which rocks, because there's just nothing like programming, tbh.
purple_pixie is offline
Reply



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 20:39.


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