Skip to content

Bug: "output_angles" output from game_view_info and game_entity_info sound operators is always 0 #1750

@CuteFoxModules

Description

@CuteFoxModules

Describe the bug

When using the game_view_info and game_entity_info sound operators, the output_angles output always outputs 0 (most likely a vector of 0 0 0), regardless of the rotation of the player (in the first case) or the entity (in the second).
Therefore the output is essentially unusable.

To Reproduce

  1. Add this update_stack to sound_operator_stacks.txt
"bug_script" 
	{
		"entity_info"
		{
			"operator" "game_entity_info"
			"input_entity_index" "14"
		}
		"player_info"
		{
			"operator" "game_view_info"
		}
		"print_entity"
		{
			"operator" "util_print_float"
			"input" "@entity_info.output_angles"
		}
		"print_player"
		{
			"operator" "util_print_float"
			"input" "@player_info.output_angles"
		}
		
	}
  1. Add bug_script as an update_stack for any sound entry
  2. On any map, find an entity near you and write its index in the script
  3. Use playgamesound to play the sound entry and see the printed outputs with developer 1
Image

Issue Map

any map

Expected Behavior

In contrast, output_angles works correctly with the get_source_info operator.
It is supposed to output a vector with the rotation of the player/entity.

Operating System

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugThis is a problem with something that should be working one way, but isn't.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions