switch iwpn case CSW_P228 sprite d_p228 case CSW_SCOUT sprite d_scout

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
switch(iwpn) {
case CSW_P228: sprite = "d_p228"
case CSW_SCOUT: sprite = "d_scout"
case CSW_HEGRENADE: sprite = "d_grenade"
case CSW_XM1014: sprite = "d_xm1014"
case CSW_C4: sprite = "d_c4"
case CSW_MAC10: sprite = "d_mac10"
case CSW_AUG: sprite = "d_aug"
case CSW_SMOKEGRENADE: sprite = "d_grenade"
case CSW_ELITE: sprite = "d_elite"
case CSW_FIVESEVEN: sprite = "d_fiveseven"
case CSW_UMP45: sprite = "d_ump45"
case CSW_SG550: sprite = "d_sg550"
case CSW_GALIL: sprite = "d_galil"
case CSW_FAMAS: sprite = "d_famas"
case CSW_USP: sprite = "d_usp"
case CSW_MP5NAVY: sprite = "d_mp5navy"
case CSW_M249: sprite = "d_m249"
case CSW_M3: sprite = "d_m3"
case CSW_M4A1: sprite = "d_m4a1"
case CSW_TMP: sprite = "d_tmp"
case CSW_G3SG1: sprite = "d_g3sg1"
case CSW_FLASHBANG: sprite = "d_flashbang"
case CSW_DEAGLE: sprite = "d_deagle"
case CSW_SG552: sprite = "d_sg552"
case CSW_AK47: sprite = "d_ak47"
case CSW_KNIFE: sprite = "d_knife"
case CSW_P90: sprite = "d_p90"
case CSW_VEST: sprite = "suit_full"
case CSW_VESTHELM: sprite = "suithelmet_full"
case CSW_GLOCK18: sprite = "d_glock18"
case CSW_AWP: sprite = "d_awp"
case 0: sprite = ""
default: sprite = ""
}