1"use strict";(self.webpackChunksource_2_wiki=self.webpackChunksource_2_wiki||[]).push([["16234"],{46218(e,n,r){r.r(n),r.d(n,{metadata:()=>i,default:()=>x,frontMatter:()=>d,contentTitle:()=>c,toc:()=>u,assets:()=>h});var i=JSON.parse('{"id":"Entities/item_hlvr_weapon_rapidfire","title":"item_hlvr_weapon_rapidfire","description":"","source":"@site/docs/Entities/item_hlvr_weapon_rapidfire.mdx","sourceDirName":"Entities","slug":"/Entities/item_hlvr_weapon_rapidfire","permalink":"/Entities/item_hlvr_weapon_rapidfire","draft":false,"unlisted":false,"editUrl":"/HowToEdit/entity-page-info","tags":[],"version":"current","lastUpdatedBy":"Angel","lastUpdatedAt":1786909969000,"frontMatter":{"hide_table_of_contents":true,"custom_edit_url":"/HowToEdit/entity-page-info","description":"","image":"/fgd_dump/img/hla/vr_ipistol.png","entity_embed":{"description":"","largeIcon":true,"games":[{"game":"hla","type":"Point","keyvalues":9,"inputs":14,"outputs":11}]},"last_update":{"date":"2026-08-16T21:52:49+02:00","author":"Angel"}},"sidebar":"tutorialSidebar","previous":{"title":"item_hlvr_weapon_radio","permalink":"/Entities/item_hlvr_weapon_radio"},"next":{"title":"item_hlvr_weapon_shotgun","permalink":"/Entities/item_hlvr_weapon_shotgun"}}'),s=r(74848),t=r(28453),l=r(46327);function a(e){let n={br:"br",code:"code",em:"em",li:"li",p:"p",strong:"strong",ul:"ul",...(0,t.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,s.jsxs)(s.Fragment,{children:["\n",(0,s.jsx)("img",{src:"/fgd_dump/img/hla/vr_ipistol.png",alt:"item_hlvr_weapon_rapidfire icon",style:{height:"80px"}}),"\n",(0,s.jsx)(n.p,{children:"Point Entity"}),"\n",(0,s.jsxs)(r,{open:!0,children:[(0,s.jsx)("summary",{children:(0,s.jsx)("h2",{children:"Keyvalues"})}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Disable shadows"})," (",(0,s.jsx)(n.code,{children:"disableshadows"}),") <",(0,s.jsx)(n.code,{children:"Bool"}),">"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Entity Scripts"})," (",(0,s.jsx)(n.code,{children:"vscripts"}),") <",(0,s.jsx)(n.code,{children:"ScriptList"}),">",(0,s.jsx)(n.br,{}),"\n","Name(s) of script files that are executed after all entities have spawned."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Name"})," (",(0,s.jsx)(n.code,{children:"targetname"}),") <",(0,s.jsx)(n.code,{children:"TargetSource"}),">",(0,s.jsx)(n.br,{}),"\n","The name that other entities refer to this entity by."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Start Fade Dist/Pixels"})," (",(0,s.jsx)(n.code,{children:"fademindist"}),") <",(0,s.jsx)(n.code,{children:"Float"}),">",(0,s.jsx)(n.br,{}),"\n","Distance at which the prop starts to fade (<0 = use fademaxdist). If 'Screen Space Fade' is selected, this represents the number of pixels wide covered by the prop when it starts to fade."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"End Fade Dist/Pixels"})," (",(0,s.jsx)(n.code,{children:"fademaxdist"}),") <",(0,s.jsx)(n.code,{children:"Float"}),">",(0,s.jsx)(n.br,{}),"\n","Maximum distance at which the prop is visible (0 = don't fade out). If 'Screen Space Fade' is selected, this represents the ",(0,s.jsx)(n.em,{children:"minimum"})," number of pixels wide covered by the prop when it fades."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Fade Scale"})," (",(0,s.jsx)(n.code,{children:"fadescale"}),") <",(0,s.jsx)(n.code,{children:"Float"}),">",(0,s.jsx)(n.br,{}),"\n","If you specify a fade in the worldspawn, or if the engine is running under dx7, then the engine will forcibly fade out props even if fademindist/fademaxdist isn't specified. This scale factor gives you some control over the fade. Using 0 here turns off the forcible fades."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Start Asleep"})," (",(0,s.jsx)(n.code,{children:"phys_start_asleep"}),") <",(0,s.jsx)(n.code,{children:"Bool"}),">",(0,s.jsx)(n.br,{}),"\n","Should the physics of the item be initialized as sleeping on spawn"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Spawnflags"})," (",(0,s.jsx)(n.code,{children:"spawnflags"}),") <",(0,s.jsx)(n.code,{children:"Flags"}),">"]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["Start Constrained (",(0,s.jsx)(n.code,{children:"1"}),")"]}),"\n"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Number of bullets in the clip (Default is no clip)"})," (",(0,s.jsx)(n.code,{children:"set_spawn_ammo"}),") <",(0,s.jsx)(n.code,{children:"Integer"}),">"]}),"\n"]}),"\n"]})]}),"\n",(0,s.jsxs)(r,{open:!0,children:[(0,s.jsx)("summary",{children:(0,s.jsx)("h2",{children:"Inputs"})}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["DisableShadow <",(0,s.jsx)(n.code,{children:"Void"}),">",(0,s.jsx)(n.br,{}),"\n","Turn shadow off."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["EnableShadow <",(0,s.jsx)(n.code,{children:"Void"}),">",(0,s.jsx)(n.br,{}),"\n","Turn shadow on."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["RunScriptFile <",(0,s.jsx)(n.code,{children:"String"}),">",(0,s.jsx)(n.br,{}),"\n","Load and execute a script file"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["RunScriptCode <",(0,s.jsx)(n.code,{children:"String"}),">",(0,s.jsx)(n.br,{}),"\n","Execute a fragment of script code"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["CallScriptFunction <",(0,s.jsx)(n.code,{children:"String"}),">",(0,s.jsx)(n.br,{}),"\n","Call a script function"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["CallPrivateScriptFunction <",(0,s.jsx)(n.code,{children:"String"}),">",(0,s.jsx)(n.br,{}),"\n","Calls a script function from this entity's private script scope."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["CallGlobalScriptFunction <",(0,s.jsx)(n.code,{children:"String"}),">",(0,s.jsx)(n.br,{}),"\n","Calls a script function in the global script scope."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["Kill <",(0,s.jsx)(n.code,{children:"Void"}),">",(0,s.jsx)(n.br,{}),"\n","Removes this entity from the world."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["KillHierarchy <",(0,s.jsx)(n.code,{children:"Void"}),">",(0,s.jsx)(n.br,{}),"\n","Removes this entity and all its children from the world."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["AddOutput <",(0,s.jsx)(n.code,{children:"String"}),">",(0,s.jsx)(n.br,{}),"\n","Adds an entity I/O connection to this entity. Parameter format: outputname>targetname>inputname>parameter>delay>max times to fire (-1 == infinite). Very dangerous, use with care."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["FireUser1 <",(0,s.jsx)(n.code,{children:"Void"}),">",(0,s.jsx)(n.br,{}),"\n","Causes this entity's OnUser1 output to be fired."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["FireUser2 <",(0,s.jsx)(n.code,{children:"Void"}),">",(0,s.jsx)(n.br,{}),"\n","Causes this entity's OnUser2 output to be fired."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["FireUser3 <",(0,s.jsx)(n.code,{children:"Void"}),">",(0,s.jsx)(n.br,{}),"\n","Causes this entity's OnUser3 output to be fired."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["FireUser4 <",(0,s.jsx)(n.code,{children:"Void"}),">",(0,s.jsx)(n.br,{}),"\n","Causes this entity's OnUser4 output to be fired."]}),"\n"]}),"\n"]})]}),"\n",(0,s.jsxs)(r,{open:!0,children:[(0,s.jsx)("summary",{children:(0,s.jsx)("h2",{children:"Outputs"})}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["OnAttachedToHand <",(0,s.jsx)(n.code,{children:"Void"}),">",(0,s.jsx)(n.br,{}
1),"\n","Fired when the item is attached to the player's hand (i.e. pickup)"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["OnDetachedFromHand <",(0,s.jsx)(n.code,{children:"Void"}),">",(0,s.jsx)(n.br,{}),"\n","Fired when the item is attached to the player's hand (i.e. drop)"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["OnUser1 <",(0,s.jsx)(n.code,{children:"Void"}),">",(0,s.jsx)(n.br,{}),"\n","Fired in response to FireUser1 input."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["OnUser2 <",(0,s.jsx)(n.code,{children:"Void"}),">",(0,s.jsx)(n.br,{}),"\n","Fired in response to FireUser2 input."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["OnUser3 <",(0,s.jsx)(n.code,{children:"Void"}),">",(0,s.jsx)(n.br,{}),"\n","Fired in response to FireUser3 input."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["OnUser4 <",(0,s.jsx)(n.code,{children:"Void"}),">",(0,s.jsx)(n.br,{}),"\n","Fired in response to FireUser4 input."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["OnKilled <",(0,s.jsx)(n.code,{children:"Void"}),">",(0,s.jsx)(n.br,{}),"\n","Fired when the entity is killed and removed from the game."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["OnPlayerTouch <",(0,s.jsx)(n.code,{children:"Void"}),">",(0,s.jsx)(n.br,{}),"\n","Fires when the player touches this object"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["OnPlayerPickup <",(0,s.jsx)(n.code,{children:"Void"}),">",(0,s.jsx)(n.br,{}),"\n","Fires when the player picks up this object"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["OnGlovePulled <",(0,s.jsx)(n.code,{children:"Void"}),">",(0,s.jsx)(n.br,{}),"\n","Pulled by the gravity gloves"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["OnCacheInteraction <",(0,s.jsx)(n.code,{children:"Void"}),">",(0,s.jsx)(n.br,{}),"\n","This output fires when the player proves they have 'found' this item. Fires on: Player Touch (whether or not player actually acquires the item), Picked up by +USE, Picked up by Physcannon, Punted by Physcannon."]}),"\n"]}),"\n"]})]})]})}function o(e={}){let{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(a,{...e})}):a(e)}let d={hide_table_of_contents:!0,custom_edit_url:"/HowToEdit/entity-page-info",description:"",image:"/fgd_dump/img/hla/vr_ipistol.png",entity_embed:{description:"",largeIcon:!0,games:[{game:"hla",type:"Point",keyvalues:9,inputs:14,outputs:11}]},last_update:{date:"2026-08-16T21:52:49+02:00",author:"Angel"}},c="item_hlvr_weapon_rapidfire",h={},u=[];function p(e){let n={h1:"h1",header:"header",...(0,t.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:["\n","\n",(0,s.jsx)(n.header,{children:(0,s.jsx)(n.h1,{id:"item_hlvr_weapon_rapidfire",children:"item_hlvr_weapon_rapidfire"})}),"\n","\n",(0,s.jsx)(l.A,{hla:(0,s.jsx)(o,{})})]})}function x(e={}){let{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(p,{...e})}):p(e)}},57250(e,n,r){r.d(n,{A:()=>a});var i=r(74848);r(96540);var s=r(34164),t=r(57663);function l({children:e,className:n,hidden:r}){return(0,i.jsx)("div",{role:"tabpanel",className:(0,s.A)("tabItem_Ymn6",n),hidden:r,children:e})}function a({children:e,className:n,value:r}){let{selectedValue:s,lazy:o}=(0,t.uc)(),d=r===s;return!d&&o?null:(0,i.jsx)(l,{className:n,hidden:!d,children:e})}},50773(e,n,r){r.d(n,{A:()=>u});var i=r(74848);r(96540);var s=r(34164),t=r(88287),l=r(57663),a=r(28584),o=r(19863);function d({className:e}){let{selectedValue:n,selectValue:r,tabValues:t,block:o}=(0,l.uc)(),c=[],{blockElementScrollPositionUntilNextRender:h}=(0,a.a_)(),u=e=>{let i=e.currentTarget,s=t[c.indexOf(i)].value;s!==n&&(h(i),r(s))},p=e=>{let n=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{let r=c.indexOf(e.currentTarget)+1;n=c[r]??c[0];break}case"ArrowLeft":{let r=c.indexOf(e.currentTarget)-1;n=c[r]??c[c.length-1]}}n?.focus()};return(0,i.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,s.A)("tabs",{"tabs--block":o},e),children:t.map(({value:e,label:r,attributes:t})=>(0,i.jsx)("li",{role:"tab",tabIndex:n===e?0:-1,"aria-selected":n===e,ref:e=>{c.push(e)},onKeyDown:p,onClick:u,...t,className:(0,s.A)("tabs__item","tabItem_LNqP",t?.className,{"tabs__item--active":n===e}),children:r??e},e))})}function c({children:e}){return(0,i.jsx)("div",{className:"margin-top--md",children:e})}function h({className:e,children:n}){return(0,i.jsxs)("div",{className:(0,s.A)(t.G.tabs.container,"tabs-container","tabList__CuJ"),children:[(0,i.jsx)(d,{className:e}),(0,i.jsx)(c,{children:n})]})}function u(e){let n=(0,o.A)(),r=(0,l.OC)(e);return(0,i.jsx)(l.O_,{value:r,children:(0,i.jsx)(h,{className:e.className,children:(0,l.vT)(e.children)})},String(n))}},57663(e,n,r){r.d(n,{OC:()=>u,O_:()=>j,uc:()=>x,vT:()=>c});var i=r(74848),s=r(96540),t=r(56347),l=r(99989),a=r(96629),o=r(80618),d=r(41367);function c(e){return s.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:i=!1,groupId:c}=e,u=function(e){let{values:n,children:r}=e;return(0,s.useMemo)(()=>{let e=n??s.Children.toArray(r).flatMap(e=>{if(!e)return[];if((0,s.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:i}})=>({value:e,label:n,attributes:r,default:i})),i=(0,o.XI)(e,(e,n)=>e.value===n.value);if(i.length>0)throw Error(`Docusaurus error: Duplicate values "${i.map(e=>`'${e.value}'`).join(", ")}" found in <Tabs>. Every value needs to be unique.`);return e},[n,r])}(e),[p,x]=(0,s.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})),[j,f]=function({queryString:e=!1,groupId:n}){let r=(0,t.W6)(),i=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,a.aZ)(i),(0,s.useCallback)(e=>{if(!i)return;let n=new URLSearchParams(r.location.search);n.set(i,e),r.replace({...r.location,search:n.toString()})},[i,r])]}({queryString:i,groupId:c}),[m,b]=function({groupId:e}){let n=e?`docusaurus.tab.${e}`:null,[r,i]=(0,d.Dv)(n);return[r,(0,s.useCallback)(e=>{n&&i.set(e)},[n,i])]}({groupId:c}),v=h({value:n=j??m,tabValues:u})?n:null;return(0,l.A)(()=>{v&&x(v)},[v]),{selectedValue:p,selectValue:(0,s.useCallback)(e=>{if(!h({value:e,tabValues:u}))throw Error(`Can't select invalid tab value=${e}`);x(e),f(e),b(e)},[f,b,u]),tabValues:u,lazy:e.lazy??!1,block:e.block??!1}}let p=(0,s.createContext)(null);function x(){let e=s.useContext(p);if(!e)throw Error("useTabsContext() must be used within a Tabs component");return e}function j(e){return(0,i.jsx)(p.Provider,{value:e.value,children:e.children})}},46327(e,n,r){r.d(n,{A:()=>o});var i=r(74848),s=r(96540),t=r(50773),l=r(57250),a=r(47798);let o=e=>{let n={};if(Object.entries(e).forEach(([e,r])=>{a.kx[e]&&r&&(s.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,i.jsx)(t.A,{queryString:"game",className:"game-tabs",children:r.map(([e,n])=>{let r=a.kx[e];return r&&n?(0,i.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:()=>a});var i=r(96540);let s={},t=i.createContext(s);function l(e){let n=i.useContext(t);return i.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:l(e.components),i.createElement(t.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.