Raised This Month: $ Target: $400
 0% 

Force a Door to Stay Open


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shadow.hk
Senior Member
Join Date: Dec 2008
Location: WA, Australia
Old 10-20-2010 , 01:52   Force a Door to Stay Open
Reply With Quote #1

Is there a way you can stop a door from closing after it's been opened. I've tried setting the doors' SF_DOOR_NO_AUTO_RETURN to 1 but that doesn't seem to work.
shadow.hk is offline
Send a message via MSN to shadow.hk
shuttle_wave
Veteran Member
Join Date: Apr 2009
Location: New Zealand
Old 12-23-2010 , 00:14   Re: Force a Door to Stay Open
Reply With Quote #2

bump. i wanna find out too.
__________________
JailBreak Mod with Plugin API ( 90% ) Public
shuttle_wave is offline
Firippu
Senior Member
Join Date: Jan 2007
Old 12-23-2010 , 01:59   Re: Force a Door to Stay Open
Reply With Quote #3

This modifies the func_door entity to wait 0 seconds before closing, apparently 0 is infinite. The doors reset and are closed at every round start.

Code:
#include <amxmodx>
#include <engine>

#define seconds "0"

public plugin_init() {
    register_plugin("New Plugin","1.0","Unknown")

    new ent
    while((ent = find_ent_by_class(ent,"func_door")) != 0) {
        DispatchKeyValue(ent,"wait",seconds)
    }
}
__________________

Last edited by Firippu; 12-23-2010 at 21:33.
Firippu 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 10:28.


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