I'm afraid that DEFINE_AUTO_ARRAY_KEYFIELD is broken. That's why you can't
set the spotlight texture in the Hammer entity properties dialog, a proper
fix would be to change:

#define DEFINE_AUTO_ARRAY_KEYFIELD(name,fieldtype,mapname) _FIELD(name,
fieldtype, SIZE_OF_ARRAY(((classNameTypedef *)0)->name), FTYPEDESC_SAVE,
mapname, 0 )

to

#define DEFINE_AUTO_ARRAY_KEYFIELD(name,fieldtype,mapname) _FIELD(name,
fieldtype, SIZE_OF_ARRAY(((classNameTypedef *)0)->name), FTYPEDESC_KEY |
FTYPEDESC_SAVE, mapname, 0 )

Note how the second has the FTYPEDESC_KEY flag set (which should be set for
all KEYFIELD data descs). This automatically does the networked var value
setting instead of manually in ::KeyValue

Thanks,
 - Saul.


On 26 November 2010 22:58, Nova Silisko <novasili...@gmail.com> wrote:

> Also, in env_projectedtexture.cpp there is:
>
> DEFINE_AUTO_ARRAY_KEYFIELD( m_SpotlightTextureName, FIELD_CHARACTER,
> "texturename" ),
>
> Does this mean it doesn't need a Keyvalues() function or is it something
> else?
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to