Skip to content

Conversation

ChaseTownsend
Copy link

Adds entranceindex and exitindex to player_teleported event, useful for people using this event for vscript.

@ChaseTownsend ChaseTownsend changed the title Add EntIndex params to player_teleporter [TF2] Add EntIndex params to player_teleporter Sep 18, 2025
@ChaseTownsend ChaseTownsend changed the title [TF2] Add EntIndex params to player_teleporter [TF2] Add EntIndex params to player_teleported Sep 18, 2025
Bitl added a commit to BitlDevelopmentStudios/source-sdk-2013-bds-base that referenced this pull request Sep 20, 2025
@ChaseTownsend
Copy link
Author

ChaseTownsend commented Sep 23, 2025

This would also need a change to the events file.1

	"player_teleported"
	{
		"userid"	"short"		    // userid of the player
		"builderid"	"short"		    // userid of the player who built the teleporter
		"exitindex"	"short"		// entindex of the exit teleporter
		"entranceindex"	"short"	// entindex of the entrance teleporter
		"dist"		"float"		    // distance the player was teleported
	}

Footnotes

  1. Code refrences multiple files such as "resource/gameevents.res", and "resource/modevents.res"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant