Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

Weapon model changer

A Config Script for Counter-Strike: Global Offensive

No ads for members. Membership is 100% free. Sign up!
177 9 kb Raw Code
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
function Changer(){
    //printl("It works!");
    local model   = null;
    
    while (model = Entities.FindByModel(model, "models/weapons/w_knife_default_t.mdl")){
        model.PrecacheModel("models/weapons/w_minecraft_pickaxe.mdl");    
        model.SetModel("models/weapons/w_minecraft_pickaxe.mdl");
        //printl("finded!");
    }
    while (model = Entities.FindByModel(model, "models/weapons/v_knife_default_t.mdl")){
        model.PrecacheModel("models/weapons/v_minecraft_pickaxe.mdl");    
        model.SetModel("models/weapons/v_minecraft_pickaxe.mdl");
        //printl("finded!");
    } 
    
    while (model = Entities.FindByModel(model, "models/weapons/w_knife_default_ct.mdl")){
        model.PrecacheModel("models/weapons/w_minecraft_pickaxe.mdl");    
        model.SetModel("models/weapons/w_minecraft_pickaxe.mdl");
        //printl("finded!");
    }
    while (model = Entities.FindByModel(model, "models/weapons/v_knife_default_ct.mdl")){
        model.PrecacheModel("models/weapons/v_minecraft_pickaxe.mdl");    
        model.SetModel("models/weapons/v_minecraft_pickaxe.mdl");
        //printl("finded!");
    }
    while (model = Entities.FindByModel(model, "models/weapons/v_knife_bayonet.mdl")){
        model.PrecacheModel("models/weapons/v_minecraft_pickaxe.mdl");    
        model.SetModel("models/weapons/v_minecraft_pickaxe.mdl");
        //printl("finded!");
    }
    while (model = Entities.FindByModel(model, "models/weapons/w_knife_bayonet.mdl")){
        model.PrecacheModel("models/weapons/w_minecraft_pickaxe.mdl");    
        model.SetModel("models/weapons/w_minecraft_pickaxe.mdl");
        //printl("finded!");
    } 
    while (model = Entities.FindByModel(model, "models/weapons/v_knife_karam.mdl")){
        model.PrecacheModel("models/weapons/v_minecraft_pickaxe.mdl");    
        model.SetModel("models/weapons/v_minecraft_pickaxe.mdl");
        //printl("finded!");
    } 
    while (model = Entities.FindByModel(model, "models/weapons/w_knife_karam.mdl")){
        model.PrecacheModel("models/weapons/w_minecraft_pickaxe.mdl");    
        model.SetModel("models/weapons/w_minecraft_pickaxe.mdl");
        //printl("finded!");
    }
    while (model = Entities.FindByModel(model, "models/weapons/v_knife_m9_bay.mdl")){
        model.PrecacheModel("models/weapons/v_minecraft_pickaxe.mdl");    
        model.SetModel("models/weapons/v_minecraft_pickaxe.mdl");
        //printl("finded!");
    } 
    while (model = Entities.FindByModel(model, "models/weapons/w_knife_m9_bay.mdl")){
        model.PrecacheModel("models/weapons/w_minecraft_pickaxe.mdl");    
        model.SetModel("models/weapons/w_minecraft_pickaxe.mdl");
        //printl("finded!");
    }
    while (model = Entities.FindByModel(model, "models/weapons/v_knife_push.mdl")){
        model.PrecacheModel("models/weapons/v_minecraft_pickaxe.mdl");    
        model.SetModel("models/weapons/v_minecraft_pickaxe.mdl");
        //printl("finded!");
    } 
    while (model = Entities.FindByModel(model, "models/weapons/w_knife_push.mdl")){
        model.PrecacheModel("models/weapons/w_minecraft_pickaxe.mdl");    
        model.SetModel("models/weapons/w_minecraft_pickaxe.mdl");
        //printl("finded!");
    }
    while (model = Entities.FindByModel(model, "models/weapons/v_knife_gut.mdl")){
        model.PrecacheModel("models/weapons/v_minecraft_pickaxe.mdl");    
        model.SetModel("models/weapons/v_minecraft_pickaxe.mdl");
        //printl("finded!");
    } 
    while (model = Entities.FindByModel(model, "models/weapons/w_knife_gut.mdl")){
        model.PrecacheModel("models/weapons/w_minecraft_pickaxe.mdl");    
        model.SetModel("models/weapons/w_minecraft_pickaxe.mdl");
        //printl("finded!");
    }
    while (model = Entities.FindByModel(model, "models/weapons/v_knife_flip.mdl")){
        model.PrecacheModel("models/weapons/v_minecraft_pickaxe.mdl");    
        model.SetModel("models/weapons/v_minecraft_pickaxe.mdl");
        //printl("finded!");
    } 
    while (model = Entities.FindByModel(model, "models/weapons/w_knife_flip.mdl")){
        model.PrecacheModel("models/weapons/w_minecraft_pickaxe.mdl");    
        model.SetModel("models/weapons/w_minecraft_pickaxe.mdl");
        //printl("finded!");
    }
     while (model = Entities.FindByModel(model, "models/weapons/v_knife_tactical.mdl")){
        model.PrecacheModel("models/weapons/v_minecraft_pickaxe.mdl");    
        model.SetModel("models/weapons/v_minecraft_pickaxe.mdl");
        //printl("finded!");
    } 
    while (model = Entities.FindByModel(model, "models/weapons/w_knife_tactical.mdl")){
        model.PrecacheModel("models/weapons/w_minecraft_pickaxe.mdl");    
        model.SetModel("models/weapons/w_minecraft_pickaxe.mdl");
        //printl("finded!");
    }
    while (model = Entities.FindByModel(model, "models/weapons/v_knife_butterfly.mdl")){
        model.PrecacheModel("models/weapons/v_minecraft_pickaxe.mdl");    
        model.SetModel("models/weapons/v_minecraft_pickaxe.mdl");
        //printl("finded!");
    } 
    while (model = Entities.FindByModel(model, "models/weapons/w_knife_butterfly.mdl")){
        model.PrecacheModel("models/weapons/w_minecraft_pickaxe.mdl");    
        model.SetModel("models/weapons/w_minecraft_pickaxe.mdl");
        //printl("finded!");
    }
    while (model = Entities.FindByModel(model, "models/weapons/v_knife_falchion_advanced.mdl")){
        model.PrecacheModel("models/weapons/v_minecraft_pickaxe.mdl");    
        model.SetModel("models/weapons/v_minecraft_pickaxe.mdl");
        //printl("finded!");
    } 
    while (model = Entities.FindByModel(model, "models/weapons/w_knife_falchion_advanced.mdl")){
        model.PrecacheModel("models/weapons/w_minecraft_pickaxe.mdl");    
        model.SetModel("models/weapons/w_minecraft_pickaxe.mdl");
        //printl("finded!");
    }
    while (model = Entities.FindByModel(model, "models/weapons/v_knife_stiletto.mdl")){
        model.PrecacheModel("models/weapons/v_minecraft_pickaxe.mdl");    
        model.SetModel("models/weapons/v_minecraft_pickaxe.mdl");
        //printl("finded!");
    } 
    while (model = Entities.FindByModel(model, "models/weapons/w_knife_stiletto.mdl")){
        model.PrecacheModel("models/weapons/w_minecraft_pickaxe.mdl");    
        model.SetModel("models/weapons/w_minecraft_pickaxe.mdl");
        //printl("finded!");
    }
    while (model = Entities.FindByModel(model, "models/weapons/v_knife_survival_bowie.mdl")){
        model.PrecacheModel("models/weapons/v_minecraft_pickaxe.mdl");    
        model.SetModel("models/weapons/v_minecraft_pickaxe.mdl");
        //printl("finded!");
    } 
    while (model = Entities.FindByModel(model, "models/weapons/w_knife_survival_bowie.mdl")){
        model.PrecacheModel("models/weapons/w_minecraft_pickaxe.mdl");    
        model.SetModel("models/weapons/w_minecraft_pickaxe.mdl");
        //printl("finded!");
    }
    while (model = Entities.FindByModel(model, "models/weapons/v_knife_ursus.mdl")){
        model.PrecacheModel("models/weapons/v_minecraft_pickaxe.mdl");    
        model.SetModel("models/weapons/v_minecraft_pickaxe.mdl");
        //printl("finded!");
    } 
    while (model = Entities.FindByModel(model, "models/weapons/w_knife_ursus.mdl")){
        model.PrecacheModel("models/weapons/w_minecraft_pickaxe.mdl");    
        model.SetModel("models/weapons/w_minecraft_pickaxe.mdl");
        //printl("finded!");
    }
    while (model = Entities.FindByModel(model, "models/weapons/v_knife_widowmaker.mdl")){
        model.PrecacheModel("models/weapons/v_minecraft_pickaxe.mdl");    
        model.SetModel("models/weapons/v_minecraft_pickaxe.mdl");
        //printl("finded!");
    } 
    while (model = Entities.FindByModel(model, "models/weapons/w_knife_widowmaker.mdl")){
        model.PrecacheModel("models/weapons/w_minecraft_pickaxe.mdl");    
        model.SetModel("models/weapons/w_minecraft_pickaxe.mdl");
        //printl("finded!");
    }
    while (model = Entities.FindByModel(model, "models/weapons/v_knife_gypsy_jackknife.mdl")){
        model.PrecacheModel("models/weapons/v_minecraft_pickaxe.mdl");    
        model.SetModel("models/weapons/v_minecraft_pickaxe.mdl");
        //printl("finded!");
    } 
    while (model = Entities.FindByModel(model, "models/weapons/w_knife_gypsy_jackknife.mdl")){
        model.PrecacheModel("models/weapons/w_minecraft_pickaxe.mdl");    
        model.SetModel("models/weapons/w_minecraft_pickaxe.mdl");
        //printl("finded!");
    }
    while (model = Entities.FindByModel(model, "models/weapons/v_knife_gg.mdl")){
        model.PrecacheModel("models/weapons/v_minecraft_pickaxe.mdl");    
        model.SetModel("models/weapons/v_minecraft_pickaxe.mdl");
        //printl("finded!");
    } 
    while (model = Entities.FindByModel(model, "models/weapons/w_knife_gg.mdl")){
        model.PrecacheModel("models/weapons/w_minecraft_pickaxe.mdl");    
        model.SetModel("models/weapons/w_minecraft_pickaxe.mdl");
        //printl("finded!");
    }

}

With that script you can change model of any weapon on your map

With this simple script you can change model of any weapon on your map. It replaces default model of weapon on yours.
For example I've changed all default models of knives on Minecraft pickaxe.


How to activate this script on your map?

  1. Save the script code to a file with the extension .nut in csgo/scripts/vscripts folder
  2. Create logic_script entity and give it a name (replace kniveschanger.nut with your script file)
  3. Create logic_eventlistener_itemequip entity with settings like on the screenshot
  4. In logic_eventlistener_itemequip entity create output with following settings. 
  5. Enjoy)
To change model of weapon you need its w_ and v_ model (like v_knife_tactical.mdl and w_knife_tactical.mdl) Replace my file names on yours.

Sign up to access this!

No comments yet

Embed

menu
Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code

Credits

Key Authors
Beshka
Beshka Joined 2y ago
332 points Ranked 49699th

Submitter

Beshka avatar
Beshka Joined 2y ago
332 points Ranked 49699th
Beshka
Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

License

menu

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • 1
  • 883
  • 1mo
  • 1mo

More Other/Misc Scripts