Skip to content

Added spawnflags for keep player angles & velocity in trigger_teleport#11

Merged
fireblizzard merged 3 commits intofireblizzard:masterfrom
SmileyAG:spawnflags_teleport
Nov 6, 2022
Merged

Added spawnflags for keep player angles & velocity in trigger_teleport#11
fireblizzard merged 3 commits intofireblizzard:masterfrom
SmileyAG:spawnflags_teleport

Conversation

@SmileyAG
Copy link

@SmileyAG SmileyAG commented Feb 3, 2022

telehops_serverside.mp4

trigger_teleport class in .FGD should looks like:

@SolidClass base(Trigger) = trigger_teleport : "Trigger teleport" 
[
	spawnflags(flags) =
	[
		256: "Keep angles" : 0
		512: "Keep velocity" : 0
		1024: "Redirect velocity with yaw from destination" : 0
	]
]

modified map: agtricks_telehop.zip

@SmileyAG
Copy link
Author

@fireblizzard After I started to making new telehop maps noticed that there is issue with direction of speed per destination at some maps, I got fixed it by new spawnflag in 721ea2e commit.

FGD class:

@SolidClass base(Trigger) = trigger_teleport : "Trigger teleport" 
[
	spawnflags(flags) =
	[
		256: "Keep angles" : 0
		512: "Keep velocity" : 0
		1024: "Redirect velocity with yaw from destination" : 0
	]
]

Mapper should select one of four yaw (0, 90, 180, 270) at angles of info_teleport_destination to redirect player velocity to right way.

Clips with demonstration (BXT HUDs enabled to see angles & velocity at different axis):

Old behaviour

old.mp4

old

New behaviour

new.mp4

new

destinationyaw

@SmileyAG
Copy link
Author

Juice showed me a proper solution for keep velocity in all directions, now it's not hardcoded to only few directions as I did before.

@SmileyAG SmileyAG force-pushed the spawnflags_teleport branch from 9847853 to 87f9b21 Compare November 6, 2022 12:09
@fireblizzard fireblizzard merged commit ca9b041 into fireblizzard:master Nov 6, 2022
@SmileyAG SmileyAG deleted the spawnflags_teleport branch January 14, 2023 13:23
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.

2 participants