Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't access fgd behaviour dictionary in S2 #25

Open
xPaw opened this issue Jun 20, 2023 · 2 comments
Open

Can't access fgd behaviour dictionary in S2 #25

xPaw opened this issue Jun 20, 2023 · 2 comments

Comments

@xPaw
Copy link

xPaw commented Jun 20, 2023

@PointClass
	base( Targetname, Parentname, CanBeClientOnly, Light2Inputs )
	omnilight()
	metadata
	{
		entity_tool_name = "Omni Light"
		entity_tool_tip = "Omni directional light source"
		entity_tool_group = "Lighting"
		entity_tool_sortname = "lights2"
		default_pitch = 90.0
	}
	iconsprite
	{
		image = "materials/editor/light_omni.vmat"
		tintKey = "color"
	}
= light_omni2 : "A sphere or tube shaped light"

In this example, class.Behaviour for iconsprite has no values, and the actual values are in class.Dictionaries, but as far as I can tell there is no way to know which dictionary to access for this behaviour since I don't know which dictionary index it is.

@xPaw xPaw changed the title Can't access behaviour dictionary in S2 Can't access fgd behaviour dictionary in S2 Jun 20, 2023
@LogicAndTrick
Copy link
Owner

I might have to review how the library separates dictionaries and behaviours, since it seems that S2 treats them somewhat the same. But dictionaries have a Name field that you can use, to see which property the dictionary is associated with:

image

@xPaw
Copy link
Author

xPaw commented Jun 25, 2023

Indeed I can look at the name, VS annoyingly hid it and only displayed the values.

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

No branches or pull requests

2 participants