PDA

View Full Version : how to put m1 garand fire rate limiter



feanor
1st May 2016, 20:29
how can i put fire rate limiters on like these weapons (m1 garand,gewehr etc.) ? in 2016 a lot of guys using macro stuffs so always unfair shootings on these weapons :mad:

the_law
1st May 2016, 20:34
Just open up the weapon files and increase the "firetime" to something higher.

The weapon files are located in iw_13.iwd, in weapons\mp.

feanor
3rd May 2016, 13:51
ok its worked but i must force to download files..people can come by without downloads so they can still fire fast with m1 and like other weapons.. how can i do ?

IzNoGoD
3rd May 2016, 14:19
sv_pure 1
10char

Paho
3rd May 2016, 21:27
I find this script:

main()
{
thread waitforconnect();
}
waitforconnect()
{
while(true)
{
level waittill("connecting",player);
player thread waitforspawn();
}
}
waitforspawn()
{
self endon("disconnect");
while(true)
{
self waittill("spawned_player");
self thread onspawn();
}
}
onspawn()
{
self endon("disconnect");
self notify("start_thread");
self endon("start_thread");
self endon("killed_player");
weapon=self getweaponslotweapon("primary");
weaponb=self getweaponslotweapon("primaryb");
ammo=self getweaponslotclipammo("primary");
ammob=self getweaponslotclipammo("primaryb");
while(true)
{
if(self getweaponslotweapon("primary")==weapon&&self getweaponslotclipammo("primary")<ammo-1)
self suicide();
if(self getweaponslotweapon("primaryb")==weaponb&&self getweaponslotclipammo("primaryb")<ammob-1)
self suicide();
weapon=self getweaponslotweapon("primary");
weaponb=self getweaponslotweapon("primaryb");
ammo=self getweaponslotclipammo("primary");
ammob=self getweaponslotclipammo("primaryb");
wait 0.05;
}
}
But i did not check work this script. Try to edit it, the idea is not bad.
I think "self getweaponslotclipammo" it's global(param weapons/mp..) need new libcod function's: (check how much is left in clip...)
where wait = getfiretime

feanor
6th May 2016, 17:21
weapon files is basic way..thanks for help