I am making a knife map for Css, and I don't know how to make a glock have one bullet.
If it is a knife map why have a glock?
[QUOTE=Jakobi;22653230]If it is a knife map why have a glock?[/QUOTE]
I only want it to have one bullet, and you have to break a container to get it.
Just use a usp full clip.
No, he wants it to have one bullet.
Impossible without lua
I'll need to see in hammer to test whether this is the way you do it, but i think it's worth a try.
First create a glock entity.
Now open the object properties by double clicking on it. Click on a button near the top called "smartedit"
Click the new button "add" near the middle-right and a box should pop up. In the box "key" type in "ammo" and in "value" type in the amount of ammo you want, in this case "1"
Now click ok, and apply.
Congratulations you now have a glock that has 1 bullet in it. I think.
I did that and it made it just have 1 clip.
See if a value of .5 gives you a half of a clip.
Try 0.0555555555555555555555, might give you a single bullet.
[QUOTE=Conn92;22671881]Try 0.0555555555555555555555, might give you a single bullet.[/QUOTE]
or break it
[QUOTE=Conn92;22671881]Try 0.0555555555555555555555[/QUOTE]
Wouldn't it be 0.05 on it's own? Considering a single glock mag carries 20 rounds, the additional 5's would be redundant, and in actuality would bring the answer to 1.1111 etc.
Edit: Tested 0.05 myself and it rounded down to 0 ingame. This is starting to look somewhat impossible. I'm not sure how to change the ammo already loaded into the gun either.
Sorry, you need to Log In to post a reply to this thread.