by mathey bu » Sun Apr 11, 2010 23:11
ok now the shotgun
about 40 frames
the decorate here:
Code: Select all
//===========================================================================
//
// shotgun
//
//===========================================================================
actor 12-gauge-shotgun : weapon replaces shotgun
{
scale .25
weapon.ammotype1 "12-gauge-shell-holder"
weapon.ammotype2 "12-gauge-shell"
weapon.ammogive1 4
weapon.ammogive2 12
weapon.ammouse1 1
inventory.pickupmessage "12 gauge shotgun"
weapon.selectionorder 3
weapon.upsound "shotgun/up"
+ammo_optional
states
{
spawn:
stwd "abcdefghijklmnopqrstuvwxyz[\]" 1
swd1 abcdefg 1
loop
select:
shtg yxwvutsrqponmlkjhgfedcba 1 a_raise
loop
ready:
shtg abcdefghgfedcb 3 a_weaponready(wrf_nobob)
loop
fire:
null a 0 a_jumpifnoammo("reload")
null a 0 a_jumpifinventory("single", 1, "single")
null a 0 a_jumpifinventory("automatic", 1, "automatic")
sigle:
shtg abcdefg 1
shtg h 1 a_playsound("shotgun/fire")
shtg i 1 a_firebullets(random(-1,1), random(-1,1), 4, 10, "bulletpuff", 1)
shtg jklmnop 1
goto reloading
automatic:
shtg abcdefg 1
shtg h 1 a_playsound("shotgun/fire")
shtg i 1 a_firebullets(random(-1,1), random(-1,1), 4, 10, "bulletpuff", 1)
shtg jklmnop 1
sht1 rstuvw 1
shtg p 0 a_refire
goto ready
reload:
null a 0 a_jumpifinventory("12-gauge-shell-holder", 4, "ready")
null a 0 a_jumpifinventory("12-gauge-shell", 1, "reloading")
goto ready
reloading:
null a 0 a_jumpifinventory("12-gauge-shell-holder", 4, "reload.finish")
null a 0 a_takeinventory("12-gauge-shell", 1)
null a 0 a_giveinventory("12-gauge-shell-holder", 1)
shtg qrstuvwxy 1
shtg z 1 a_playsound("shotgun/reload")
shtg "[\]" 1
sht1 abcdefghi 1
loop
reload.finish:
sht1 jklmnopqrstuvw 1
goto ready
altfire:
null a 0 a_jumpifinventory("automatic", 1, "alt.single")
alt.automatic:
null a 0 a_print("automatic!")
null a 0 a_giveinventory("automatic", 1)
null a 0 a_takeinventory("single", 1)
shtg abcdefghgfedcb 1
goto ready
alt.single:
null a 0 a_print("single!")
null a 0 a_giveinventory("single", 1)
null a 0 a_takeinventory("automatic", 1)
shtg abcdefghgfedcb 1
goto ready
deselect:
shtg abcdefghjklmnopqrstuvwxy 1 a_lower
loop
}
}
actor shotgun-reload : inventory {inventory.amount 1}
actor single : inventory {inventory.amount 1}
actor automatic : inventory {inventory.amount 1}
actor alt : inventory {inventory.amount 1}
ok now the shotgun
[url=http://img695.imageshack.us/i/screenshotdoom201004121.png/][img]http://img695.imageshack.us/img695/6735/screenshotdoom201004121.png[/img][/url]
[url=http://img301.imageshack.us/i/screenshotdoom201004121.png/][img]http://img301.imageshack.us/img301/6735/screenshotdoom201004121.png[/img][/url]
about 40 frames
the decorate here:
[code]//===========================================================================
//
// shotgun
//
//===========================================================================
actor 12-gauge-shotgun : weapon replaces shotgun
{
scale .25
weapon.ammotype1 "12-gauge-shell-holder"
weapon.ammotype2 "12-gauge-shell"
weapon.ammogive1 4
weapon.ammogive2 12
weapon.ammouse1 1
inventory.pickupmessage "12 gauge shotgun"
weapon.selectionorder 3
weapon.upsound "shotgun/up"
+ammo_optional
states
{
spawn:
stwd "abcdefghijklmnopqrstuvwxyz[\]" 1
swd1 abcdefg 1
loop
select:
shtg yxwvutsrqponmlkjhgfedcba 1 a_raise
loop
ready:
shtg abcdefghgfedcb 3 a_weaponready(wrf_nobob)
loop
fire:
null a 0 a_jumpifnoammo("reload")
null a 0 a_jumpifinventory("single", 1, "single")
null a 0 a_jumpifinventory("automatic", 1, "automatic")
sigle:
shtg abcdefg 1
shtg h 1 a_playsound("shotgun/fire")
shtg i 1 a_firebullets(random(-1,1), random(-1,1), 4, 10, "bulletpuff", 1)
shtg jklmnop 1
goto reloading
automatic:
shtg abcdefg 1
shtg h 1 a_playsound("shotgun/fire")
shtg i 1 a_firebullets(random(-1,1), random(-1,1), 4, 10, "bulletpuff", 1)
shtg jklmnop 1
sht1 rstuvw 1
shtg p 0 a_refire
goto ready
reload:
null a 0 a_jumpifinventory("12-gauge-shell-holder", 4, "ready")
null a 0 a_jumpifinventory("12-gauge-shell", 1, "reloading")
goto ready
reloading:
null a 0 a_jumpifinventory("12-gauge-shell-holder", 4, "reload.finish")
null a 0 a_takeinventory("12-gauge-shell", 1)
null a 0 a_giveinventory("12-gauge-shell-holder", 1)
shtg qrstuvwxy 1
shtg z 1 a_playsound("shotgun/reload")
shtg "[\]" 1
sht1 abcdefghi 1
loop
reload.finish:
sht1 jklmnopqrstuvw 1
goto ready
altfire:
null a 0 a_jumpifinventory("automatic", 1, "alt.single")
alt.automatic:
null a 0 a_print("automatic!")
null a 0 a_giveinventory("automatic", 1)
null a 0 a_takeinventory("single", 1)
shtg abcdefghgfedcb 1
goto ready
alt.single:
null a 0 a_print("single!")
null a 0 a_giveinventory("single", 1)
null a 0 a_takeinventory("automatic", 1)
shtg abcdefghgfedcb 1
goto ready
deselect:
shtg abcdefghjklmnopqrstuvwxy 1 a_lower
loop
}
}
actor shotgun-reload : inventory {inventory.amount 1}
actor single : inventory {inventory.amount 1}
actor automatic : inventory {inventory.amount 1}
actor alt : inventory {inventory.amount 1}[/code]