PageSourceSearch

https://www.source2.wiki/assets/js/6c6dd807.0af4cc3a.js

js source2.wiki collected 2026-10-09 00:27:24 UTC 17,021 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunksource_2_wiki=self.webpackChunksource_2_wiki||[]).push([["10076"],{70344(e,n,r){r.r(n),r.d(n,{metadata:()=>s,default:()=>m,frontMatter:()=>h,contentTitle:()=>u,toc:()=>j,assets:()=>x});var s=JSON.parse('{"id":"Entities/scripted_sentence","title":"scripted_sentence","description":"Scripted Sentence","source":"@site/docs/Entities/scripted_sentence.mdx","sourceDirName":"Entities","slug":"/Entities/scripted_sentence","permalink":"/Entities/scripted_sentence","draft":false,"unlisted":false,"editUrl":"/HowToEdit/entity-page-info","tags":[],"version":"current","lastUpdatedBy":"Angel","lastUpdatedAt":1763337070000,"frontMatter":{"hide_table_of_contents":true,"custom_edit_url":"/HowToEdit/entity-page-info","description":"Scripted Sentence","image":"/fgd_dump/img/hla/scripted_sentence.png","entity_embed":{"description":"Scripted Sentence","largeIcon":false,"games":[{"game":"hla","type":"Point","keyvalues":9,"inputs":1,"outputs":2},{"game":"steamvr","type":"Point","keyvalues":9,"inputs":1,"outputs":2}]},"last_update":{"date":"2025-11-17T00:51:10+01:00","author":"Angel"}},"sidebar":"tutorialSidebar","previous":{"title":"save_photogrammetry_anchor","permalink":"/Entities/save_photogrammetry_anchor"},"next":{"title":"scripted_sequence","permalink":"/Entities/scripted_sequence"}}'),t=r(74848),i=r(28453),l=r(46327);function c(e){let n={br:"br",code:"code",li:"li",p:"p",strong:"strong",ul:"ul",...(0,i.R)(),...e.components},{Details:r}=n;return r||function(e,n){throw Error("Expected "+(n?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}("Details",!0),(0,t.jsxs)(t.Fragment,{children:["\n",(0,t.jsx)("img",{src:"/fgd_dump/img/hla/scripted_sentence.png",alt:"scripted_sentence icon",style:{height:"80px"}}),"\n",(0,t.jsx)(n.p,{children:"Point Entity"}),"\n",(0,t.jsx)(n.p,{children:"Scripted Sentence"}),"\n",(0,t.jsxs)(r,{open:!0,children:[(0,t.jsx)("summary",{children:(0,t.jsx)("h2",{children:"Keyvalues"})}),(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:"Spawnflags"})," (",(0,t.jsx)(n.code,{children:"spawnflags"}),") <",(0,t.jsx)(n.code,{children:"Flags"}),">"]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["Fire Once (",(0,t.jsx)(n.code,{children:"1"}),")"]}),"\n",(0,t.jsxs)(n.li,{children:["Followers Only (",(0,t.jsx)(n.code,{children:"2"}),")"]}),"\n",(0,t.jsxs)(n.li,{children:["Interrupt Speech (",(0,t.jsx)(n.code,{children:"4"}),")"]}),"\n",(0,t.jsxs)(n.li,{children:["Concurrent (",(0,t.jsx)(n.code,{children:"8"}),")"]}),"\n",(0,t.jsxs)(n.li,{children:["Speak to Activator (",(0,t.jsx)(n.code,{children:"16"}),")"]}),"\n"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:"Sentence Name"})," (",(0,t.jsx)(n.code,{children:"sentence"}),") <",(0,t.jsx)(n.code,{children:"String"}),">"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:"Speaker Type"})," (",(0,t.jsx)(n.code,{children:"entity"}),") <",(0,t.jsx)(n.code,{children:"String"}),">"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:"Additional Sentence Time"})," (",(0,t.jsx)(n.code,{children:"delay"}),") <",(0,t.jsx)(n.code,{children:"String"}),">"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:"Search Radius"})," (",(0,t.jsx)(n.code,{children:"radius"}),") <",(0,t.jsx)(n.code,{children:"Integer"}),">"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:"Delay Before Refire"})," (",(0,t.jsx)(n.code,{children:"refire"}),") <",(0,t.jsx)(n.code,{children:"String"}),">"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:"Listener Type"})," (",(0,t.jsx)(n.code,{children:"listener"}),") <",(0,t.jsx)(n.code,{children:"String"}),">"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:"Volume 0-10"})," (",(0,t.jsx)(n.code,{children:"volume"}),") <",(0,t.jsx)(n.code,{children:"String"}),">"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:"Sound Radius"})," (",(0,t.jsx)(n.code,{children:"attenuation"}),") <",(0,t.jsx)(n.code,{children:"Choices"}),">"]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["Small Radius (",(0,t.jsx)(n.code,{children:"0"}),")"]}),"\n",(0,t.jsxs)(n.li,{children:["Medium Radius (",(0,t.jsx)(n.code,{children:"1"}),")"]}),"\n",(0,t.jsxs)(n.li,{children:["Large  Radius (",(0,t.jsx)(n.code,{children:"2"}),")"]}),"\n",(0,t.jsxs)(n.li,{children:["Play Everywhere (",(0,t.jsx)(n.code,{children:"3"}),")"]}),"\n"]}),"\n"]}),"\n"]})]}),"\n",(0,t.jsxs)(r,{open:!0,children:[(0,t.jsx)("summary",{children:(0,t.jsx)("h2",{children:"Inputs"})}),(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["BeginSentence <",(0,t.jsx)(n.code,{children:"Void"}),">",(0,t.jsx)(n.br,{}),"\n","Starts the scripted sentence."]}),"\n"]})]}),"\n",(0,t.jsxs)(r,{open:!0,children:[(0,t.jsx)("summary",{children:(0,t.jsx)("h2",{children:"Outputs"})}),(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:["OnBeginSentence <",(0,t.jsx)(n.code,{children:"Void"}),">",(0,t.jsx)(n.br,{}),"\n","Fires when the sentence begins"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:["OnEndSentence <",(0,t.jsx)(n.code,{children:"Void"}),">",(0,t.jsx)(n.br,{}),"\n","Fires when the sentence ends"]}),"\n"]}),"\n"]})]})]})}function d(e={}){let{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(c,{...e})}):c(e)}function o(e){let n={br:"br",code:"code",li:"li",p:"p",strong:"strong",ul:"ul",...(0,i.R)(),...e.components},{Details:r}=n;return r||function(e,n){throw Error("Expected "+(n?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}("Details",!0),(0,t.jsxs)(t.Fragment,{children:["\n",(0,t.jsx)("img",{src:"/fgd_dump/img/steamvr/scripted_sentence.png",alt:"scripted_sentence icon",style:{height:"80px"}}),"\n",(0,t.jsx)(n.p,{children:"Point Entity"}),"\n",(0,t.jsx)(n.p,{children:"Scripted Sentence"}),"\n",(0,t.jsxs)(r,{open:!0,children:[(0,t.jsx)("summary",{children:(0,t.jsx)("h2",{children:"Keyvalues"})}),(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:"Spawnflags"})," (",(0,t.jsx)(n.code,{children:"spawnflags"}),") <",(0,t.jsx)(n.code,{children:"Flags"}),">"]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["Fire Once (",(0,t.jsx)(n.code,{children:"1"}),")"]}),"\n",(0,t.jsxs)(n.li,{children:["Followers Only (",(0,t.jsx)(n.code,{children:"2"}),")"]}),"\n",(0,t.jsxs)(n.li,{children:["Interrupt Speech (",(0,t.jsx)(n.code,{children:"4"}),")"]}),"\n",(0,t.jsxs)(n.li,{children:["Concurrent (",(0,t.jsx)(n.code,{children:"8"}),")"]}),"\n",(0,t.jsxs)(n.li,{children:["Speak to Activator (",(0,t.jsx)(n.code,{children:"16"}),")"]}),"\n"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:"Sentence Name"})," (",(0,t.jsx)(n.code,{children:"sentence"}),") <",(0,t.jsx)(n.code,{children:"String"}),">"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:"Speaker Type"})," (",(0,t.jsx)(n.code,{children:"entity"}),") <",(0,t.jsx)(n.code,{children:"String"}),">"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:"Additional Sentence Time"})," (",(0,t.jsx)(n.code,{children:"delay"}),") <",(0,t.jsx)(n.code,{children:"String"}),">"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:"Search Radius"})," (",(0,t.jsx)(n.code,{children:"radius"}),") <",(0,t.jsx)(n.code,{children:"Integer"}),">"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:"Delay Before Refire"})," (",(0,t.jsx)(n.code,{children:"refire"}),") <",(0,t.jsx)(n.code,{children:"String"}),">"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:"Listener Type"})," (",(0,t.jsx)(n.code,{children:"listener"}),") <",(0,t.jsx)(n.code,{children:"String"}),">"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:"Volume 0-10"})," (",(0,t.jsx)(n.code,{children:"volume"}),") <",(0,t.jsx)(n.code,{children:"String"}),">"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:"Sound Radius"})," (",(0,t.jsx)(n.code,{children:"attenuation"}),") <",(0,t.jsx)(n.code,{children:"Choices"}),">"]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["Small Radius (",(0,t.jsx)(n.code,{children:"0"}),")"]}),"\n",(0,t.jsxs)(n.li,{children:["Medium Radius (",(0,t.jsx)(n.code,{children:"1"}),")"]}),"\n",(0,t.jsxs)(n.li,{children:["Large  Radius (",(0,t.jsx)(n.code,{children:"2"}),")"]}),"\n",(0,t.jsxs)(n.li,{children:["Play Everywhere (",(0,t.jsx)(n.code,{children:"3"}),")"]}),"\n"]}),"\n"]}),"\n"]})]}),"\n",(0,t.jsxs)(r,{open:!0,children:[(0,t.jsx)("summary",{children:(0,t.jsx)("h2",{children:"Inputs"})}),(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["BeginSentence <",(0,t.jsx)(n.code,{children:"Void"}),">",(0,t.jsx)(n.br,{}),"\n","Starts the scripted sentence."]}),"\n"]})]}),"\n",(0,t.jsxs)(r,{open:!0,children:[(0,t.jsx)("summary",{children:(0,t.jsx)("h2",{children:"Outputs"})}),(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:["OnBeginSentence <",(0,t.jsx)(n.code,{children:"Void"}),">",(0,t.jsx)(n.br,{}),"\n","Fires when the sentence begins"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:["OnEndSentence <",(0,t.jsx)(n.code,{children:"Void"}),">",(0,t.jsx)(n.br,{}),"\n","Fires when the sentence ends"]}),"\n"]}),"\n"]})]})]})}function a(e={}){let{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(o,{...e})}):o(e)}let h={hide_table_of_contents:!0,custom_edit_url:"/HowToEdit/entity-page-info",description:"Scripted Sentence",image:"/fgd_dump/img/hla/scripted_sentence.png",entity_embed:{description:"Scripted Sentence",largeIcon:!1,games:[{game:"hla",type:"Point",keyvalues:9,inputs:1,outputs:2},{game:"steamvr",type:"Point",keyvalues:9,inputs:1,outputs:2}]},last_update:{date:"2025-11-17T00:51:10+01:00",author:"Angel"}},u="scripted_sentence",x={},j=[];function p(e){let n={h1:"h1",header:"header",...(0,i.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:["\n","\n",(0,t.jsx)(n.header,{children:(0,t.jsx)(n.h1,{id:"scripted_sentence",children:"scripted_sentence"})}),"\n","\n",(0,t.jsx)(l.A,{hla:(0,t.jsx)(d,{}),steamvr:(0,t.jsx)(a,{})})]})}function m(e={}){let{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(p,{...e})}):p(e)}},57250(e,n,r){r.d(n,{A:()=>c});var s=r(74848);r(96540);var t=r(34164),i=r(57663);function l({children:e,className:n,hidden:r}){return(0,s.jsx)("div",{role:"tabpanel",className:(0,t.A)("tabItem_Ymn6",n),hidden:r,children:e})}function c({children:e,className:n,value:r}){let{selectedValue:t,lazy:d}=(0,i.uc)(),o=r===t;return!o&&d?null:(0,s.jsx)(l,{className:n,hidden:!o,children:e})}},50773(e,n,r){r.d(n,{A:()=>u});var s=r(74848);r(96540);var t=r(34164),i=r(88287),l=r(57663),c=r(28584),d=r(19863);function o({className:e}){let{selectedValue:n,selectValue:r,tabValues:i,block:d}=(0,l.uc)(),a=[],{blockElementScrollPositionUntilNextRender:h}=(0,c.a_)(),u=e=>{let s=e.currentTarget,t=i[a.indexOf(s)].value;t!==n&&(h(s),r(t))},x=e=>{let n=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{let r=a.indexOf(e.currentTarget)+1;n=a[r]??a[0];break}case"ArrowLeft":{let r=a.indexOf(e.currentTarget)-1;n=a[r]??a[a.length-1]}}n?.focus()};return(0,s.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,t.A)("tabs",{"tabs--block":d},e),children:i.map(({value:e,label:r,attributes:i})=>(0,s.jsx)("li",{role:"tab",tabIndex:n===e?0:-1,"aria-selected":n===e,ref:e=>{a.push(e)},onKeyDown:x,onClick:u,...i,className:(0,t.A)("tabs__item","tabItem_LNqP",i?.className,{"tabs__item--active":n===e}),children:r??e},e))})}function a({children:e}){return(0,s.jsx)("div",{className:"margin-top--md",children:e})}function h({className:e,children:n}){return(0,s.jsxs)("div",{className:(0,t.A)(i.G.tabs.container,"tabs-container","tabList__CuJ"),children:[(0,s.jsx)(o,{className:e}),(0,s.jsx)(a,{children:n})]})}function u(e){let n=(0,d.A)(),r=(0,l.OC)(e);return(0,s.jsx)(l.O_,{value:r,children:(0,s.jsx)(h,{className:e.className,children:(0,l.vT)(e.children)})},String(n))}},57663(e,n,r){r.d(n,{OC:()=>u,O_:()=>p,uc:()=>j,vT:()=>a});var s=r(74848),t=r(96540),i=r(56347),l=r(99989),c=r(96629),d=r(80618),o=r(41367);function a(e){return t.Children.toArray(e).filter(e=>"\n"!==e)}function h({value:e,tabValues:n}){return n.some(n=>n.value===e)}function u(e){let n,{defaultValue:r,queryString:s=!1,groupId:a}=e,u=function(e){let{values:n,children:r}=e;return(0,t.useMemo)(()=>{let e=n??t.Children.toArray(r).flatMap(e=>{if(!e)return[];if((0,t.isValidElement)(e)&&function(e){let{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return[e];
1let n="string"==typeof e.type?e.type:e.type.name;throw Error(`Docusaurus error: Bad <Tabs> child <${n}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.
2If you do not want to pass on a "value" prop to the direct children of <Tabs>, you can also pass an explicit <Tabs values={...}> prop.`)}).map(({props:{value:e,label:n,attributes:r,default:s}})=>({value:e,label:n,attributes:r,default:s})),s=(0,d.XI)(e,(e,n)=>e.value===n.value);if(s.length>0)throw Error(`Docusaurus error: Duplicate values "${s.map(e=>`'${e.value}'`).join(", ")}" found in <Tabs>. Every value needs to be unique.`);return e},[n,r])}(e),[x,j]=(0,t.useState)(()=>(function({defaultValue:e,tabValues:n}){if(0===n.length)throw Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(e){if(!h({value:e,tabValues:n}))throw Error(`Docusaurus error: The <Tabs> has a defaultValue "${e}" but none of its children has the corresponding value. Available values are: ${n.map(e=>e.value).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return e}let r=n.find(e=>e.default)??n[0];if(!r)throw Error("Unexpected error: 0 tabValues");return r.value})({defaultValue:r,tabValues:u})),[p,m]=function({queryString:e=!1,groupId:n}){let r=(0,i.W6)(),s=function({queryString:e=!1,groupId:n}){if("string"==typeof e)return e;if(!1===e)return null;if(!0===e&&!n)throw Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:e,groupId:n});return[(0,c.aZ)(s),(0,t.useCallback)(e=>{if(!s)return;let n=new URLSearchParams(r.location.search);n.set(s,e),r.replace({...r.location,search:n.toString()})},[s,r])]}({queryString:s,groupId:a}),[g,f]=function({groupId:e}){let n=e?`docusaurus.tab.${e}`:null,[r,s]=(0,o.Dv)(n);return[r,(0,t.useCallback)(e=>{n&&s.set(e)},[n,s])]}({groupId:a}),b=h({value:n=p??g,tabValues:u})?n:null;return(0,l.A)(()=>{b&&j(b)},[b]),{selectedValue:x,selectValue:(0,t.useCallback)(e=>{if(!h({value:e,tabValues:u}))throw Error(`Can't select invalid tab value=${e}`);j(e),m(e),f(e)},[m,f,u]),tabValues:u,lazy:e.lazy??!1,block:e.block??!1}}let x=(0,t.createContext)(null);function j(){let e=t.useContext(x);if(!e)throw Error("useTabsContext() must be used within a Tabs component");return e}function p(e){return(0,s.jsx)(x.Provider,{value:e.value,children:e.children})}},46327(e,n,r){r.d(n,{A:()=>d});var s=r(74848),t=r(96540),i=r(50773),l=r(57250),c=r(47798);let d=e=>{let n={};if(Object.entries(e).forEach(([e,r])=>{c.kx[e]&&r&&(t.isValidElement(r)||"object"==typeof r)&&(n[e]=r)}),!n||"object"!=typeof n)throw Error("GameTabs: No valid game content found in props");let r=Object.entries(n);if(0===r.length)throw Error("GameTabs element without any tabs");return(0,s.jsx)(i.A,{queryString:"game",className:"game-tabs",children:r.map(([e,n])=>{let r=c.kx[e];return r&&n?(0,s.jsx)(l.A,{value:e,label:r.PrettyName,attributes:{className:e},children:n},e):null})})}},28453(e,n,r){r.d(n,{R:()=>l,x:()=>c});var s=r(96540);let t={},i=s.createContext(t);function l(e){let n=s.useContext(i);return s.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:l(e.components),s.createElement(i.Provider,{value:n},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.