Shotgun reload

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
dcbulldog
Lance Corporal
Posts: 10
Joined: Mon Feb 25, 2008 6:11 am
Location: Arkansas
Contact:

Shotgun reload

Post by dcbulldog »

Is there a way to speed up the reload for the shotgun?

Either by speeding up each shell or by changing the reload to a clip reload?
PKM
General
Posts: 1888
Joined: Tue Aug 09, 2005 4:43 pm
Location: Philadelpia but stuck in San Antonio TX (hell)

Post by PKM »

i'm not a scripter but provided it doesn't effect the reload animation (like rifles) you should simply be able to open the shotgun.tik and change the following...

firedelay 0.75

to something like...

firedelay 0.55
i'm not f****** angry, i'm from philadelphia .
Image
User avatar
211476
Captain
Posts: 273
Joined: Fri Feb 29, 2008 2:20 am
Location: Arizona, USA
Contact:

Post by 211476 »

You could also make 1 shell=5 shells on reload
Image
dcbulldog
Lance Corporal
Posts: 10
Joined: Mon Feb 25, 2008 6:11 am
Location: Arkansas
Contact:

shells

Post by dcbulldog »

what i did was change the reload # to 0 from 5 and made the dm startammo 200.

I did change the firedelay as well.

thanks for the help guys!
Tazz
Second Lieutenant
Posts: 155
Joined: Fri Feb 16, 2007 1:29 pm
Contact:

Post by Tazz »

what reload #? wheres that at?

the firedelay is just the time from when u hit ur mouse to when it actually fires...not reloading time....

this is all i see for reload in the tik file


reload_single shotgun.skc // this is the reload loop that loads in a single shell....


i thought u would have to edit the skc file for a faster reload.....also if u could u could make it reload a clip like the smg and then change the ammo to hold more sheels per clip.....already done that one though with just the tik file.......although i havent found a way to change the reload speed....if ur way worked let me know what reload # u changed.....and where its located.....thx
dcbulldog
Lance Corporal
Posts: 10
Joined: Mon Feb 25, 2008 6:11 am
Location: Arkansas
Contact:

what reload #? wheres that at?

Post by dcbulldog »

under the ammorequired.
default is 5.
i set it to 0 and the reload is gone.
i set the clipsize to 200 then you get 200 rounds to fire without the reload.
User avatar
Gold
First Lieutenant
Posts: 176
Joined: Sun Sep 28, 2003 8:10 pm

Post by Gold »

ya can change these values as well...models/player/base/animation_shotgun.txt


reloading
}
}
shotgun_reload_loop viewmodel/shotgun/tps_reload_fill.skc crossblend 0
{
server
{
first weaponcommand mainhand anim reload_single
5 weaponcommand mainhand clip_add 1 // put a single shell into the gun
}
}
shotgun_reload_end viewmodel/shotgun/tps_reload_end.skc crossblend 0.05
{
server
{
first weaponcommand mainhand anim reload_end
}
}


change to something like

5 weaponcommand mainhand clip_add 12
Tazz
Second Lieutenant
Posts: 155
Joined: Fri Feb 16, 2007 1:29 pm
Contact:

Post by Tazz »

wow!!!! nice lol....did what u BOTH said and got unlimited ammo also....i says its a clip of 50 but i shot out way over 200 times and then number never came down and i never ran out......also i set my firerate to 0.05 so it shoots like an smg if u can click the mouse fast enough rofl....thanx guys
Post Reply