Raised This Month: $ Target: $400
 0% 

[L4D & L4D2] Elevator Teleport - v1.6 | 03/01/2023


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
little_froy
Senior Member
Join Date: May 2021
Old 12-31-2022 , 01:24   Re: [L4D & L4D2] Elevator Teleport - v1.5 | 22/12/2022
Reply With Quote #15

i found an issue, if someone is pinned by special infected before teleporting, maybe that one can't successfully be teleported, then leave it alone. please fix it.
i look up the code from [L4D2]End Safearea Teleport, there is a function to fix teleport.
Code:
void TeleportFix(int client) {
	if (GetEntProp(client, Prop_Send, "m_isHangingFromLedge"))
		L4D_ReviveSurvivor(client);

	SetEntityMoveType(client, MOVETYPE_WALK);
	SetEntProp(client, Prop_Send, "m_fFlags", GetEntProp(client, Prop_Send, "m_fFlags") & ~FL_FROZEN);

	SetEntProp(client, Prop_Send, "m_bDucked", 1);
	SetEntProp(client, Prop_Send, "m_fFlags", GetEntProp(client, Prop_Send, "m_fFlags") | FL_DUCKING);
}

Last edited by little_froy; 12-31-2022 at 01:33.
little_froy is offline
 



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 01:01.


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