Monster Alter Ego: Now, I don't know if this is excaly works, as I haven't been able to test it, but you might want to add this stuff:
Ok, first go to the gun settings type. It should look like this:
type gunsettingstype
muzzleflash as integer
muzzlex# as float
muzzley# as float
muzzlez# as float
muzzlesize# as float
brass as integer
smoke as integer
flashlimb as integer
brasslimb as integer
handlimb as integer
flashimg as integer
brassobjmaster as integer
smokeimg as integer
crosshairimg as integer
flakname$ as string
flakindex as integer
seconduse as integer
damage as integer
damagetype as integer
scorchtype as integer
reloadqty as integer
weaponisammo as integer
iterate as integer
accuracy as integer
zoommode as integer
range as integer
endtype
Now, Add This:
Right above endtype.
Now, got to Gun Firing Control. Change it to something like this:
if gunmode=101
if gun(gunid).settings.reloadqty=0 then weaponammo(weaponammoindex)=99999
if weaponammo(weaponammoindex)>0
gunmode=102
set object interpolation currentgunobj,100
play object currentgunobj,gun(gunid).action.start.s,gun(gunid).action.start.e
else
if gunclick<>1
if gunsound(gunid,3).soundid>0
if sound exist(gunsound(gunid,3).soundid)=1
if sound playing(gunsound(gunid,3).soundid)=0
playinternalBC3dsound(gunsound(gunid,3).soundid,camera position x(),camera position y(),camera position z(),50)
endif
endif
endif
gunmode=107
endif
endif
endif
if gunmode=102
if object frame(currentgunobj)>=gun(gunid).action.start.e then gunmode=103
if object frame(currentgunobj)>=gun(gunid).action.start.e and gun(gunid).settings.shotgun=1 then gunmode=117 : play object currentgunobj,gun(gunid).cock.start.s,gun(gunid).action.cock.e
endif
if gunmode=117
if object frame(currentgunobj)>=gun(gunid).cock.start.e then gunmode=103
endif
Now, compile and save whereever to test. Before you test, go to Files\gamecore\guns\modernday\mossberg and open up gunspec. Under accuracy = 15, Add:
shotgun = 1
Please test it, and if it works, could you send me an exe with it? I would really like to see if my creation works.