Weapon glock: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Classifying as model entity)
 
(29 intermediate revisions by 16 users not shown)
Line 1: Line 1:
[http://bluespringsbmx.com/4IMAGES/data/media/10/tmp/hnbnon.html application for extension of time] [http://indianaoutfitters.com/s/info/tmp/wrawbf.html 10 simple rules mercy me] [http://www.biblored.org.co/agenda_actividades/programas/images/seicjt.html win sock fix] [http://ankelia-nature.com/catalogues/catalogues/iqwbcq.html post office codes uk] [http://panties-pictures.com/free/lib/temp/fqkpko.html 40s clothing] [http://www.lewakins.com/sr/images/onstdh.html pie negros] [http://lumayagrealty.com/catalog/images/pics/moiiui.html e-mail marketing companies] [http://hoosierfishing.com/phpBB/images/avatars/avatar/ihmoed.html new windows update software required] [http://smallbizbohol.com/democatalog/images/baner/ognodp.html lowell private schools] [http://smallbizbohol.com/democatalog/images/baner/quxqdx.html million dollars picture] [http://coastguard.gov.ph/content.old/license/wosnft.html new home in las vegas nevada] [http://bluespringsbmx.com/4IMAGES/data/media/10/tmp/cteuca.html subastas] [http://www.hdac.org/hdfaq/faq/srnmbq.html 1080i samsung] [http://asie-voyages.com/upload/images/lens/svkuip.html korean wong] [http://www.sedbogota.edu.co/FINANCIERA/temp/tmp/jggvok.html videreutdanning] [http://www.biblored.org.co/agenda_actividades/programas/images/kkjxpl.html sudanese news paper] [http://www.sedbogota.edu.co/FINANCIERA/temp/tmp/drwprv.html sony record nashville] [http://tarsierfoundation.org/content/license/vponbq.html jvc car audio uk] [http://tch-voyages.com/documents/prague/896/diwpvq.html picture of split rock light house] [http://coastguard.gov.ph/content.old/license/crarls.html princeton monitors] [http://panties-pictures.com/free/lib/temp/kcpmhf.html like sunday] [http://www.biblored.org.co/agenda_actividades/programas/images/ofeajq.html pacifier internet] [http://asie-voyages.com/upload/images/lens/ocgmii.html mindfulness group] [http://roycemotor.com/carpics/cache/tvvspk.html justin foxx] [http://www.redacademica.edu.co/manejocorreo/Cliente/cache/olgksc.html real estate yield calculation] [http://lumayagrealty.com/catalog/images/pics/uefjra.html information on addiction] [http://panties-pictures.com/free/lib/temp/csatpb.html systematic financial management] [http://tarsierfoundation.org/content/license/antebt.html university of pennsylvania endowment] [http://tarsierfoundation.org/content/license/ltappo.html real estate institute of victoria] [http://roycemotor.com/carpics/cache/gdtwlo.html austin randalls texas] [http://indianaoutfitters.com/s/info/tmp/vhmpjl.html voyage campus] [http://smallbizbohol.com/democatalog/images/baner/eulcel.html australia digital recording] [http://roycemotor.com/carpics/cache/rindoa.html metaphor practice] [http://tch-voyages.com/documents/prague/896/fkhcai.html suck him dry] [http://xuccco.org/themes/AT-Green3/wddaiu.html map of florida] [http://asie-voyages.com/upload/images/lens/efhuvs.html anker design] [http://xuccco.org/themes/AT-Green3/uoqvve.html painted floor mat] [http://panties-pictures.com/free/lib/temp/htldqk.html ambiance resort] [http://coastguard.gov.ph/content.old/license/irmxdt.html insurance terminology definitions] [http://indianaoutfitters.com/s/info/tmp/gmhlqn.html natural breast mexican] [http://www.youthfitnesssolutions.com/FTP1/page9/egprwd.html kinky cum] [http://asie-voyages.com/upload/images/lens/mtmxkg.html writing implement] [http://hoosierfishing.com/phpBB/images/avatars/avatar/dbixoj.html treating polycystic ovary syndrome] [http://roycemotor.com/carpics/cache/uejxgf.html mature and two boy] [http://indianaoutfitters.com/s/info/tmp/kwkdtg.html twisted porn picture] [http://www.lewakins.com/sr/images/ipkqwh.html acrylic tables] [http://xuccco.org/themes/AT-Green3/sdajbd.html symantec ghost usb drive] [http://indianaoutfitters.com/s/info/tmp/glvian.html master chief dead] [http://xuccco.org/themes/AT-Green3/motrno.html st louis mo radio station] [http://cvscaft-tcc.edu.ph/gallery/uploads/cache/hglwfn.html washington state university chemistry department] [http://lumayagrealty.com/catalog/images/pics/rctwql.html western new york real estate investors] [http://panties-pictures.com/free/lib/temp/jvejmh.html alaskan earth quakes] [http://tch-voyages.com/documents/prague/896/wkerpj.html massachusetts school construction] [http://www.biblored.org.co/agenda_actividades/programas/images/tjeija.html what is qcd] [http://roycemotor.com/carpics/cache/mtoloa.html latino organization] [http://lumayagrealty.com/catalog/images/pics/qsksmf.html secured transactions outline] [http://tch-voyages.com/documents/prague/896/fsrkpf.html ati bios flashing] [http://indianaoutfitters.com/s/info/tmp/bimbet.html where exist sql] [http://roycemotor.com/carpics/cache/anchhj.html merrick company] [http://ankelia-nature.com/catalogues/catalogues/pwcbon.html void volume fraction] [http://bluespringsbmx.com/4IMAGES/data/media/10/tmp/qapubq.html union city new jersey zip code] [http://panties-pictures.com/free/lib/temp/lsghsx.html inventor tutorial] [http://panties-pictures.com/free/lib/temp/pludop.html art deviant pgirls] [http://www.norcab.com.au/joeavatiforum/templates/cache/vhraog.html ions list] [http://www.redacademica.edu.co/manejocorreo/Cliente/cache/muweua.html i appreciate that email] [http://bluespringsbmx.com/4IMAGES/data/media/10/tmp/kgwuri.html mayhem computers] [http://smallbizbohol.com/democatalog/images/baner/hkdwjc.html win sock fix] [http://bluespringsbmx.com/4IMAGES/data/media/10/tmp/btseen.html las vegas construction contractor] [http://coastguard.gov.ph/content.old/license/rrjfdl.html what is bpo] [http://www.sedbogota.edu.co/FINANCIERA/temp/tmp/mgsbkb.html agent alabama columbus estate real] [http://ankelia-nature.com/catalogues/catalogues/omdiqc.html mortgage rate quotes in britain] [http://smallbizbohol.com/democatalog/images/baner/evhudv.html alarm inc lock system] [http://www.biblored.org.co/agenda_actividades/programas/images/fbdfdx.html smoking workplace] [http://tch-voyages.com/documents/prague/896/jfecva.html truck floor mates] [http://www.lewakins.com/sr/images/alclfg.html eastern iowa light and power] [http://panties-pictures.com/free/lib/temp/jtkobc.html arizona ballet schools] [http://asie-voyages.com/upload/images/lens/htjdwf.html acknowledgement for thesis] [http://hoosierfishing.com/phpBB/images/avatars/avatar/qplxcv.html add a level contractors] [http://smallbizbohol.com/democatalog/images/baner/wnshkw.html work recruitment agency] [http://smallbizbohol.com/democatalog/images/baner/djesgu.html song thanks for the memories] [http://smallbizbohol.com/democatalog/images/baner/hlqxno.html top old] [http://www.norcab.com.au/joeavatiforum/templates/cache/dtkvla.html indoor play house] [http://www.youthfitnesssolutions.com/FTP1/page9/axdoxx.html eagle transportation corp] [http://talentmodeles.com/mannequin/images/cache/gprrwk.html polyclonal versus monoclonal antibody] [http://talentmodeles.com/mannequin/images/cache/tovjui.html lil lamb] [http://lumayagrealty.com/catalog/images/pics/abfpfx.html skin sensitivity] [http://tarsierfoundation.org/content/license/etuedv.html tax file free online] [http://www.biblored.org.co/agenda_actividades/programas/images/wglphc.html nascar qualifing] [http://ankelia-nature.com/catalogues/catalogues/oqjdsa.html 10 most reliable cars] [http://lumayagrealty.com/catalog/images/pics/ijmbos.html nineteen month old] [http://www.biblored.org.co/agenda_actividades/programas/images/ggdkto.html smile games.] [http://bluespringsbmx.com/4IMAGES/data/media/10/tmp/fiepbd.html printing machinery directories] [http://smallbizbohol.com/democatalog/images/baner/qdrsdd.html russell freedman] [http://cvscaft-tcc.edu.ph/gallery/uploads/cache/plwfmp.html tnt manual] [http://panties-pictures.com/free/lib/temp/dhskun.html example of arrays] [http://www.youthfitnesssolutions.com/FTP1/page9/uewwvg.html entity relationship] [http://www.sedbogota.edu.co/FINANCIERA/temp/tmp/bqnios.html mercedes benz head light] [http://www.youthfitnesssolutions.com/FTP1/page9/ssnlxh.html mp3 bluetooth player] [http://bluespringsbmx.com/4IMAGES/data/media/10/tmp/qacsrt.html south australian] [http://panties-pictures.com/free/lib/temp/tmxhij.html express outlook tutorial]
{{LanguageBar}}
{{wrongtitle|title=weapon_glock}}
{{tabsBar|main=weapon_glock}}
==Entity Description==
{{CD|CWeaponGlock|base=CWeaponCSBaseGun_cs|file1=weapon_glock.cpp}}
The '''9X19mm Sidearm''' uses [[ammo_9mm]] ammunition.
[[File:weapon_glock.PNG|thumb|200px|9x19mm Sidearm in {{css}}.]]
{{basiccssweapon}}
{{this is a|model entity|name=weapon_glock|game=Counter-Strike: Source|game1=Counter-Strike: Global Offensive|game2=Counter-Strike 2}}
[[Category:Counter-Strike: Source Entities]]
==Entity description==
The {{Wiki|Glock 18|Glock-18}} ('''9x19mm Sidearm''' in {{css}}) is a pistol that uses [[ammo_9mm]] ammunition, and is the starting sidearm for the Terrorist team.
 
{{BasicCSseriesWeapon|glock}}

Latest revision as of 04:36, 19 May 2025

English (en)Deutsch (de)Translate (Translate)
edit
C++ Class hierarchy
CWeaponGlock
CWeaponCSBaseGun
CWeaponCSBase
CBaseCombatWeapon
CBaseAnimating
CBaseEntity
C++ weapon_glock.cpp
9x19mm Sidearm in Counter-Strike: Source.

weapon_glock is a model entity available in Counter-Strike: Source Counter-Strike: Source, Counter-Strike: Global Offensive Counter-Strike: Global Offensive, and Counter-Strike 2 Counter-Strike 2.

Entity description

The Wikipedia icon Glock-18 (9x19mm Sidearm in Counter-Strike: Source) is a pistol that uses ammo_9mm ammunition, and is the starting sidearm for the Terrorist team.

KeyValues

CS:S / CS:GO Weapon:

Ammo (ammo) <integer> (only in Counter-Strike: Source)
Amount of reserve ammo to be added. Fallback value is 0. !FGD
Is this weapon allowed to be picked up? (CanBePickedUp) <boolean> (only in Counter-Strike: Global Offensive)
Determines if players are able to pick up the weapon.

Flags

Start Constrained : [1]
Prevents the model from moving.
Deny Player Pickup : [2] !FGD
Prevents player from being able to pick up the weapon.

Inputs

CS:GO Weapon:

SetAmmoAmount <integerRedirectInput/integer> (only in Counter-Strike: Global Offensive)
For guns, sets the number of bullets in the active magazine. Does nothing for grenades.
Every value behaves like its congruent value in the range 0-255 in modulus 256 (e.g. -255 and 257 behave like 1 etc.). When set to 0, the owner may start reloading automatically, if possible. Other values congruent to 0 (-256, 256, 512, ...) might cause undefined behavior. Values congruent to -1 (mod 256) make the ammo numbers disappear. If set to a value outside the weapon's clip size, reloading might deliver unexpected results.
SetReserveAmmoAmount <integerRedirectInput/integer> (only in Counter-Strike: Global Offensive)
For guns, sets the number of bullets in reserve for reloading, clamping at the weapon's maximum (e.g. 90 for the weapon_ak47).
For grenades, sets their count, clamping at the current maximum depending on the convars ammo_grenade_limit_*; When setting to 0 or below while holding the grenade, the player no longer owns any, but the viewmodel stays.
Negative values make a gun's ammo display disappear and reloading is impossible.
ToggleCanBePickedUp <booleanRedirectInput/boolean> (only in Counter-Strike: Global Offensive)
Toggles whether the weapon can be picked up by players. Visually, nothing changes and there is no event if picking up fails. Hover texts like "[E] Swap for AK-47" remain in both cases.

Outputs

CS:S / CS:GO Weapon:

OnPlayerUse
Fires when a player +uses this weapon (!activator is the player.). Does not fire if the weapon is picked up successfully.
OnPlayerPickup
Fires when a player picks this weapon up (!activator is the player.).
OnCacheInteraction  !FGD
When dropped, fires every tick on player touch (!activator is the player.).
Counter-Strike: Global Offensive Also fires on successful +use pickup. Does not fire if CanBePickedUp is false.
OnNPCPickup  !FGD
Fires when an NPC picks up this weapon (!activator is the NPC). Bots are considered players, so this output has no functionality.
Counter-Strike: Source Hostages might be NPCs, but they don't pick weapons up.