CoD4 Promod - Making guns have no ammo?

Have a question about modding, modelling or skinning? Have a tutorial to post? Post here!

Moderator: Core Staff

Post Reply
madcrab
CJ Wannabe
CJ Wannabe
Posts: 1
Joined: April 8th, 2011, 9:12 pm

CoD4 Promod - Making guns have no ammo?

Post by madcrab » April 21st, 2011, 6:57 am

Hey guys,
I'm looking at trying to make a knife only server for promod, yet i've tried to disable all the guns withing the custom_public file in the promod folder and it makes it so you cannot knife and funnily enough everyone becomes invisible too. I know the codjumper mod has a gun without any ammo in it, how can i make this possible? Any help would be greatly appreciated thanks!

User avatar
Rezil
Core Staff
Core Staff
Posts: 2030
Joined: July 24th, 2006, 11:21 am
Location: Cramped in a small cubicle/making another jump map

Re: CoD4 Promod - Making guns have no ammo?

Post by Rezil » April 21st, 2011, 10:40 am

Code: Select all

self SetWeaponAmmoStock(self getCurrentWeapon(), 0);
Something along these lines. Get all players on server, loop this in a seperate thread.
Drofder2004: Drofder's rules for reviewing a map
[...]
#5 If your name is Rezil, minimum 5/5.
---
<LT>YosemiteSam[NL]:
I heard somewhere that the best way to start is juggling 2 balls with one hand, so you will get a feel for it.

Post Reply

Who is online

Users browsing this forum: No registered users and 32 guests