Talk:Model entity/Generic Keyvalues, Inputs and Outputs/Inputs: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "Inputs from <code>CBaseEntity</code> that are covered here: *<code>Alpha</code> *<code>AlternativeSorting</code> *<code>Color</code> *<code>SetDamageFilter</code> *<code>Enabl...")
 
 
(2 intermediate revisions by 2 users not shown)
Line 15: Line 15:
*<code>EnableDrawInFastReflection</code>
*<code>EnableDrawInFastReflection</code>
[[User:Pinsplash|Pinsplash]] ''([[User talk:Pinsplash|talk]])'' 09:15, 22 August 2018 (UTC)
[[User:Pinsplash|Pinsplash]] ''([[User talk:Pinsplash|talk]])'' 09:15, 22 August 2018 (UTC)
== portal2{{=}}0 vs. portal2{{=}} ==
I find the latter counter-intuitive as its kind of a boolean value and it's not that easy to make both have the same effect, I think. Same applies to <tt>"tf2=0"</tt> vs. <tt>"tf2="</tt>. I'd suggest using <code><nowiki>{{#ifeq: {{{tf2|1}}} | 0 | | ... }}</nowiki></code> instead of <code><nowiki>{{#if: {{{tf2|1}}} | ... }}</nowiki></code>. --[[User:Popcorn|Popcorn]] ([[User talk:Popcorn|talk]]) 09:00, 13 October 2022 (PDT)

Latest revision as of 08:03, 22 April 2025

Inputs from CBaseEntity that are covered here:

  • Alpha
  • AlternativeSorting
  • Color
  • SetDamageFilter
  • EnableDamageForces
  • DisableDamageForces
  • DisableShadow
  • EnableShadow
  • DisableDraw
  • EnableDraw
  • DisableReceivingFlashlight
  • EnableReceivingFlashlight
  • DisableDrawInFastReflection
  • EnableDrawInFastReflection

Pinsplash (talk) 09:15, 22 August 2018 (UTC)

portal2=0 vs. portal2=

I find the latter counter-intuitive as its kind of a boolean value and it's not that easy to make both have the same effect, I think. Same applies to "tf2=0" vs. "tf2=". I'd suggest using {{#ifeq: {{{tf2|1}}} | 0 | | ... }} instead of {{#if: {{{tf2|1}}} | ... }}. --Popcorn (talk) 09:00, 13 October 2022 (PDT)