Raised This Month: $32 Target: $400
 8% 

Solved [L4D/L4D2] Set the swing/rotation speed of saferoom doors


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 12-22-2017 , 13:58   [L4D/L4D2] Set the swing/rotation speed of saferoom doors
Reply With Quote #1

Hey, could anyone please write me a code that edits the swing/rotation speed of saferoom doors? I'd like to incorporate it into my Anti-Speedrunner System plugin.

Thanks!
__________________

Last edited by Psyk0tik; 12-23-2017 at 03:50. Reason: Marked as "[Solved]"
Psyk0tik is offline
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 12-22-2017 , 23:56   Re: [L4D/L4D2] Set the swing/rotation speed of saferoom doors
Reply With Quote #2

Think it's this input


PHP Code:
SetVariantFloat(200.0); //200 default l4d speed
AcceptEntityInput(Door"SetSpeed"); 
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D
Lux is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 12-23-2017 , 03:11   Re: [L4D/L4D2] Set the swing/rotation speed of saferoom doors
Reply With Quote #3

Taken from the (soon-to-be released) latest update of Lockdown System:
PHP Code:
int iCheckpointEnt = - 1;
while ((
iCheckpointEnt FindEntityByClassname(iCheckpointEnt"prop_door_rotating_checkpoint")) != INVALID_ENT_REFERENCE)
{
    if (!
IsValidEntity(iCheckpointEnt) || !IsValidEdict(iCheckpointEnt))
    {
        continue;
    }
    
    
SetEntPropFloat(iCheckpointEntProp_Data"m_flSpeed"200.0); // This is L4D's default door speed.

cravenge is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 12-23-2017 , 03:49   Re: [L4D/L4D2] Set the swing/rotation speed of saferoom doors
Reply With Quote #4

Thanks guys!
__________________
Psyk0tik 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 08:18.


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