AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   DMG Doors (https://forums.alliedmods.net/showthread.php?t=55986)

ian.cammarata 06-03-2007 19:27

DMG Doors
 
1 Attachment(s)
DMG Doors v0.1

Description:
When enabled this plugin adds damage to sliding doors, or sliding and hinged doors. The amount of damage dealt is also configurable. The main purpose for the writing of the plugin was to prevent message flooding caused by players getting stuck in a door, which sometimes results in all nearby players getting dropped from the server, but it's also just kinda fun.

If you would like to try out this plugin you can find a list of servers running it at the following link:
http://www.game-monitor.com/search.p...&type=variable

Cvars (First value is default):
dmgdoors < 2 (all doors) | 0 (disabled) | 1 (only sliding doors) >
dmgdoors_dmg < 9999 | ... > : How much damage the doors will do.

Notes:
Changes to cvars only take affect after a map change.

ali_zkz 06-05-2007 11:52

Re: DMG Doors
 
it looks good
maybe someone can aprove it~~

ExKiLL 06-05-2007 15:33

Re: DMG Doors
 
gj !

nice idea

VEN 06-11-2007 09:56

Re: DMG Doors
 
You better use http://wiki.amxmodx.org/index.php/AM...#CVAR_Pointers
Also you techical method isn't really suitable. So on maps where the last spawned entity are func_door / func_door_rotating that entity will not be processed (dmg keyvalue).

ian.cammarata 06-11-2007 19:53

Re: DMG Doors
 
Quote:

Originally Posted by VEN (Post 488097)

Well this code only gets executed while the map is loading, so I figured it would be better not to optimize it for speed, and save a few bytes of memory.

Quote:

Originally Posted by VEN (Post 488097)
Also you techical method isn't really suitable. So on maps where the last spawned entity are func_door / func_door_rotating that entity will not be processed (dmg keyvalue)

Good point, although it would probably only come up in a fraction of 1% of maps, but I'll fix it.

VEN 06-12-2007 02:26

Re: DMG Doors
 
Quote:

Well this code only gets executed while the map is loading, so I figured it would be better not to optimize it for speed, and save a few bytes of memory.
Actually it would be better to optimize it with PCVars because your keyvalue forward is called numerous times on map start.


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

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