View Single Post
Plugin Info:     Modification:          Category:          Approver:   Orangutanz (13)
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 04-24-2008 , 17:46   Pushable Object Respawn Fix
Reply With Quote #1

Description:
This is a simple plugin that fixes pushable object respawn bug. That bug is when you pushed some object ("func_pushable") - at new round it normaly dosn't get teleported in the standart position. Anyway, this plugin fixes that bug by teleporting thows objects back at newround to there standart positions.


Requires:
FakeMeta


Additional info:
Tested in Counter-Strike 1.6 with amxmodx 1.8.0. But shold work with all Half-Life mods and some lower amxx versions.


Change-Log:
* 1.4
- Added: speed reset so thay will be in 100% currect position.
- Added: support for custom pushable entities if there classname is standart and thay are created currectly.
- Changed: made code much more easier (I figured out, that brush entity origin (mins/maxs variable) dosn't change - changes only there offset (origin variable)).
- Removed: data saving, cuz we are working only with offset, what standart data is {0.0, 0.0, 1.0} in all pushable entities.

* 1.3
- Fixed: rased up entity limit from 1365 to 1380.
- Changed: removed "stock" in front of "get_ent_origin()" and "check_size()" functions.

* 1.2
- Added: model and size check, so plugin will be sure, that thows entities are standart ones.

* 1.1
- Added: now plugin can support some older amxx versions.

* 1.0
- First release.
Attached Files
File Type: sma Get Plugin or Get Source (func_pushable_respawn_fix.sma - 2343 views - 680 Bytes)
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.

Last edited by MPNumB; 04-30-2008 at 05:36.
MPNumB is offline
Send a message via Skype™ to MPNumB