User:Nescius/sandbox/test20: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
== 键值 ==
{{#if:{{{s|1}}}
{{minititle|CBaseEntity}}<!--
| <div style="display:flex;"><h2> test </h2> <span style="border-bottom:1px solid #65635f;padding:19.2px 1em 3px;margin:19.2px 0 11.52px;padding-right:10em">[{{PageCreateLink|create=User:Nescius/sandbox/test20|alt=edit}}]</span></div>
}}


  ++ BRUSH ++
hmmmmmmmmmmmmmmmmmmm
 
awfwfawf
-->{{#ifeq:  {{#ifeq: {{lc:{{str left|{{ROOTPAGENAME}}|4}} }} | func | 1 | 0 }}  |0||<!-- if pagename starts with "func" use {{{brush|1}}}, otherwise {{{brush|0}}} -->
{{KV|[[bmodel|Brush Model]]|intn=model|string|nofgd=1|Which bmodel to display. Normally automaticity set by [[VBSP]]; only should be edited if editing a map without recompiling it.}}
{{KV|Collisions|intn=solid|choices|
:{{KV BaseEntity/strings|KeySolidDesc}}<!-- end Strings
-->}}<!-- end KV -->
<!-- "mins" and "maxs" used to be here, but the "Bounding Box" page already describes it -->
<!-- We should make a new page for "model index"?
{{KV|Model Index|intn=modelindex|short|{{KV BaseEntity/strings|KeyModelindexDesc}}|nofgd=1}}
-->
<br />
}}<!-- END brush != 0
 
  ++ BASE ++
 
-->{{KV|[[targetname|Name]]|intn=targetname|string|{{KV BaseEntity/strings|KeyTargetnameDesc}}}}
<!-- This probably have too little use cases, we'll have to see if someone objects.
{{KV|Global Entity Name|intn=globalname|string|{{KV BaseEntity/strings|KeyGlobalnameDesc}}}}
-->
{{KV|[[Parent]]|intn=parentname|targetname|{{KV BaseEntity/strings|KeyParentnameDesc}}}}
{{KV|[[Origin]] (X Y Z)|intn=origin|coordinates|{{KV BaseEntity/strings|KeyOriginDesc}}}}
{{KV|[[Pitch Yaw Roll]] (Y Z X)|intn=angles|angle|{{KV BaseEntity/strings|KeyAnglesDesc}}}}<!--
This probably have too little use cases, we'll have to see if someone objects. Thankfully the page already describes its existence.
{{KV|[[ResponseContext|Response Contexts]]|intn=ResponseContext|string|{{KV BaseEntity/strings|KeyResponseContextDesc}}}}
-->
{{KV|[[Classname]]|intn=classname|string|nofgd=1|{{KV BaseEntity/strings|KeyClassnameDesc}}}}
{{KV|[[Spawnflags]]|intn=spawnflags|flags|{{KV BaseEntity/strings|KeyFlagsDesc}}|nofgd=1}}
{{KV|[[Effect flags|Effects]]|intn=effects|flags|{{KV BaseEntity/strings|KeyEffectsDesc}}|nofgd=1}}<!--
--><!--I'm not sure what the use cases of these 2 are, so I'll hide them for now. Sourcemod scripters don't use "hammerid" often either
{{KV|Local Time|intn=ltime|float|{{KV BaseEntity/strings|KeyLtimeDesc}}|nofgd=1}}
{{KV|Next Think|intn=nextthink|float|{{KV BaseEntity/strings|KeyNextthinkDesc}}|nofgd=1}}
{{KV|Hammer ID|intn=hammerid|int|{{KV BaseEntity/strings|KeyHammeridDesc}}|nofgd=1}}
--><!--
 
  ++ Game Specifics ++
 
-->{{#ifexpr: 0. or not 0. |<!-- hides only if L4D2 == 0 and BASE != 0 -->
{{KV|Entity Scripts|intn=vscripts|scriptlist|{{KV BaseEntity/strings|KeyVScriptsDesc}}|since=L4D2|also={{tf2}}}}
{{KV|[[Entity_Scripts#Thinker_Functions|Think function]]|intn=thinkfunction|string|{{KV BaseEntity/strings|KeyThinkFunctionDesc}}|since=L4D2|also={{tf2}}}}
{{KV|[[Lag Compensation]]|intn=LagCompensate|boolean|{{KV BaseEntity/strings|KeyLagCompensateDesc}}|nofgd=1|since=L4D2}}<!--
--><!-- Its 360, so it goes away
{{KV|Disable for Xbox 360|intn=disableX360|bool|{{KV BaseEntity/strings|KeyDisableX360Desc}}|nofgd=1|since=L4D2}}
-->}}<!--
 
-->{{#ifexpr: not 0. and not 0. |<!-- hides if L4D2 != 0 or BASE != 0 -->
{{KV|Is Automatic-Aim Target|intn=is_autoaim_target|bool|{{KV BaseEntity/strings|KeyIs_autoaim_targetDesc}}|nofgd=1|since=CSGO}}<!--
-->}}<!--
 
-->
 
== 输入 ==
<!--
 
  ++ Base ++
 
-->{{ScrollBox|title={{I BaseEntity/strings|Base}}|noscroll=1
|{{minititle|CBaseEntity}}
{{I|AddContext|{{I BaseEntity/strings|AddContext}}|param=string}}
{{I|{{Lx|AddOutput}}|{{I BaseEntity/strings|AddOutputDesc}}|param=string}}
{{I|ClearContext|{{I BaseEntity/strings|ClearContext}}}}
{{I|ClearParent|{{I BaseEntity/strings|ClearParent}}}}
{{I|FireUser1|to=FireUser4|{{I BaseEntity/strings|FireUser1To4Desc}}}}
{{I|[[Kill]]|{{I BaseEntity/strings|Kill}}}}
{{I|KillHierarchy|{{I BaseEntity/strings|KillHierarchy}}}}
{{I|RemoveContext|{{I BaseEntity/strings|RemoveContext}}|param=string}}
{{I|SetParent|{{I BaseEntity/strings|SetParent}}|param=string}}
{{I|SetParentAttachment|{{I BaseEntity/strings|SetParentAttachment}}|param=string}}
{{I|SetParentAttachmentMaintainOffset|{{I BaseEntity/strings|SetParentAttachmentMaintainOffset}}|param=string}}
{{I|Use|{{I BaseEntity/strings|Use}}|nofgd=1}}
{{I|SetTeam|{{I BaseEntity/strings|SetTeam}}|nofgd=1|param=integer}}
{{I|TeamNum|{{I BaseEntity/strings|TeamNum}}|nofgd=1|param=integer}}
{{I|DispatchResponse|{{I BaseEntity/strings|DispatchResponse}}|param=string|nofgd=1}}
{{I|DispatchEffect|{{I BaseEntity/strings|DispatchEffect}}|param=string|removed={{l4d}}|nofgd=1}}
{{IO|Alpha|param=int|Sets the entity's transparency to a number from 0 (invisible) to 255 (fully visible). Requires the entity to have its '''[[Render Mode]] (rendermode)''' set to a number other than <tt>0</tt>.}}
{{IO|AlternativeSorting|param=bool|Swaps the rendering order of the entity. Used to attempt to fix sorting problems when rendering, for example an object rendering in front of translucent materials.}}
{{IO|Color|param=color255|Sets an RGB color for the entity.}}
{{IO|SetDamageFilter|param=targetname|Sets a [[filter]] for this entity for when it receives damage.}}
{{IO|EnableDamageForces|Allows the entity to be pushed by damage done to it (usually force amount correlates with the damage done).}}
{{IO|DisableDamageForces|Prevents the entity from being pushed by damage done to it.}}
<!-- IF: L4D2 -->{{#if:|
{{I|RunScriptFile|{{I BaseEntity/strings|RunScriptFile}}|param=script|since={{l4d2}}}}
{{I|RunScriptCode|{{I BaseEntity/strings|RunScriptCode}}|param=string|since={{l4d2}}}}
{{I|CallScriptFunction|{{I BaseEntity/strings|CallScriptFunction}}|param=string|since={{l4d2}}|nofgd=1}}
<!-- {{portal2|}}} was for legacy support -->
| <!-- ELSE IF: NOT BASE [AS / P2] -->{{#if:||
{{I|RunScriptFile|{{I BaseEntity/strings|RunScriptFile}}|param=script|since={{l4d2}}|also={{tf2}}}}
{{I|RunScriptCode|{{I BaseEntity/strings|RunScriptCode}}|param=string|since={{l4d2}}|also={{tf2}}}}
{{I|CallScriptFunction|{{I BaseEntity/strings|CallScriptFunctionOther}}|param=string|since={{l4d2}}|also={{tf2}}|nofgd=1}}
{{I|TerminateScriptScope|{{I BaseEntity/strings|TerminateScriptScope}}|only={{tf2}}|nofgd=1}}
{{I|SetLocalOrigin|{{I BaseEntity/strings|SetLocalOrigin}}|param=coordinates|since={{as}}|nofgd=1}}
{{I|SetLocalAngles|{{I BaseEntity/strings|SetLocalAngles}}|param=angles|since={{as}}|nofgd=1}}
}}}}}}
 
== 输出 ==
<!--
-->{{minititle|CBaseEntity}}
{{O|OnUser1|to=OnUser4|{{O BaseEntity/strings|OnUser1To4Desc}}}}<!--
-->{{#if:|<!--
-->{{O|{{O BaseEntity/strings|OnKilledL4D}}|only={{l4d}}|{{O BaseEntity/strings|OnKilledL4DDesc}}}}| }}<!--
-->{{#if:|<!--
-->{{O|{{O BaseEntity/strings|OnKilledS2}}|{{O BaseEntity/strings|OnKilledS2Desc}}}}| }}

Latest revision as of 18:06, 6 October 2024

test

[edit]

hmmmmmmmmmmmmmmmmmmm awfwfawf