Raised This Month: $95 Target: $400
 23% 

Pushable Object Respawn Fix


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Technical/Development        Approver:   Orangutanz (13)
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 04-24-2008 , 18: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 - 1801 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 06:36.
MPNumB is offline
Send a message via Skype™ to MPNumB
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 04-24-2008 , 19:07   Re: Pushable Object Respawn Fix
Reply With Quote #2

Remove the .amxx file it's automatically uploaded in the .sma.
BOYSplayCS is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 04-24-2008 , 21:55   Re: Pushable Object Respawn Fix
Reply With Quote #3

instead of saving into an array, is there a possibility that you could save the origin info into an unused pev? perhaps pev_oldorigin? seems like it would be a lot simpler if you could.

otherwise looks good.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 04-24-2008 , 22:06   Re: Pushable Object Respawn Fix
Reply With Quote #4

Quote:
Originally Posted by BOYSplayCS View Post
Remove the .amxx file it's automatically uploaded in the .sma.
Compiler from this forum sends error, cuz it wasn't updated to amx 1.8.0 includes (untill that I won't remove amxx, cuz else you just can't get amxx w/o compiling it yourself...


Quote:
Originally Posted by Emp` View Post
instead of saving into an array, is there a possibility that you could save the origin info into an unused pev? perhaps pev_oldorigin? seems like it would be a lot simpler if you could.

otherwise looks good.
And than at newround scan all func_pushable entityes of the map with check are thay standart ones? Just to much sensless cpu usage. I'll make it for use in older amxx'es (w/o dynamic cellarray) later.
__________________
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.
MPNumB is offline
Send a message via Skype™ to MPNumB
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 04-24-2008 , 22:12   Re: Pushable Object Respawn Fix
Reply With Quote #5

Quote:
Originally Posted by MPNumB View Post
Compiler from this forum sends error, cuz it wasn't updated to amx 1.8.0 includes (untill that I won't remove amxx, cuz else you just can't get amxx w/o compiling it yourself...
Unfortunately, you do not have authority to upload a compiled copy. A Mod will have to upload it for you if you want it that way
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (intervening in a thread, asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 04-24-2008 , 22:18   Re: Pushable Object Respawn Fix
Reply With Quote #6

Kk - removed *.amxx, but plz update forum compiler.
__________________
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.
MPNumB is offline
Send a message via Skype™ to MPNumB
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 04-24-2008 , 22:24   Re: Pushable Object Respawn Fix
Reply With Quote #7

Quote:
Originally Posted by MPNumB View Post
Kk - removed *.amxx, but plz update forum compiler.
Bug BAILOPAN about it. Accourding to what he told me when I asked him, it will be updated when they release 1.8.1.

Anyways, uploaded the compiled version for you so you don't get idiots asking how to compile ;)
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (intervening in a thread, asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 04-24-2008 , 23:12   Re: Pushable Object Respawn Fix
Reply With Quote #8

Quote:
Originally Posted by MPNumB View Post
And than at newround scan all func_pushable entityes of the map with check are thay standart ones?
No, I meant to use it the same way you currently do.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 04-24-2008 , 23:54   Re: Pushable Object Respawn Fix
Reply With Quote #9

Quote:
Originally Posted by Emp` View Post
No, I meant to use it the same way you currently do.
Ok. I understood, but it will use more cpu's in that case, cuz you have to get that pev_ value from the entity. Plus I don't like saving it in engine variables, cuz there are more plugins, that can use the same variable. I prefer making plugins compilable each with other. =)

P.S. Updated to 1.1 - nothing much - just added support for old amxx versions.
__________________
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.
MPNumB is offline
Send a message via Skype™ to MPNumB
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-24-2008 , 23:55   Re: Pushable Object Respawn Fix
Reply With Quote #10

Doesn't give me an error.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x 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 13:48.


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