Skip to content

Set/GetEntPropFloat doesn't work with math_counter's m_OutValue #1501

@asherkin

Description

@asherkin

https://forums.alliedmods.net/showthread.php?p=2749741#post2749741

This check bails before it gets to the variant handling check:

if (td->fieldType != FIELD_FLOAT
	&& td->fieldType != FIELD_TIME)
{
	return pContext->ThrowNativeError("Data field %s is not a float (%d != [%d,%d])", 
		prop,
		td->fieldType,
		FIELD_FLOAT,
		FIELD_TIME);
}

https://cs.alliedmods.net/sourcemod/source/core/smn_entities.cpp#1574-1586

The other type functions appear to all be correct, it is only the float ones affected.

Metadata

Metadata

Assignees

Labels

Buggeneral bugs; can be anythingGood First IssueIssues that are suitable for first-time contributors.Help Wantedup for grabs

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions