Problemas com relaod
-
- Mensagens: 779
- Registrado em: Sex Jan 05, 2007 3:55 am
- 18
Problemas com relaod
Estou com problemas com a minha primeira arma com reload...
Se quiserem, podem baixa-la aqui:
http://d.turboupload.com/d/2198383/a_po ... d.rar.html
O problema eh o seguinte:
O sistema de reload fucniona perfeitamente, mas se o jogador tem menos de 12 balas para carregar, a arma recarga mas não faz animação de recarregamento...
O Decorate da arma eatá logo abaixo:
// munição "fantasia" que fica no pente
ACTOR Bullets : Ammo
{
Inventory.Amount 12
Inventory.MaxAmount 12
Ammo.BackpackAmount 12
Ammo.BackpackMaxAmount 12
Inventory.icon "CLP1C0"
}
// munição total da arma - usada em jogo
ACTOR MaxBullets : Ammo 10002
{
Inventory.Amount 12
Inventory.MaxAmount 150
Ammo.BackpackAmount 24
Ammo.BackpackMaxAmount 350
Inventory.PickupMessage "Bullets"
Inventory.Icon "CLP1C0"
States
{
Spawn:
CLP1 C -1
Loop
}
}
// a porra da pistola
ACTOR Doom3Pistol : Weapon 30001
{
//$Category D3Weapons
Inventory.Icon "PISTA0"
Inventory.PickupMessage "Pistol"
Inventory.PickupSound "misc/d3pickup"
Weapon.SelectionOrder 1900
Weapon.AmmoType "Bullets"
Weapon.AmmoGive 12
Weapon.AmmoUse 1
Weapon.Kickback 2
+AMMO_OPTIONAL
AttackSound "weapons/pistolfire"
States
{
Spawn:
PIST A -1
Loop
Ready:
SISG A 1 A_WeaponReady
Loop
Deselect:
SISG A 1 A_Lower
Loop
Select:
SISG A 0 A_PlaySound("weapons/pistolraise")
SISG A 1 A_Raise
Goto Select+1
Fire:
SISG A 0 A_JumpIfInventory("Bullets",1,3)
SISG A 0 A_JumpIfInventory("Bullets",0,1)
SISG A 0
Goto AltFire
SISG A 0 A_GunFlash
SISG A 0 A_Light2
SISG A 3 BRIGHT
SISG B 3 BRIGHT
SISG C 0 A_FireCustomMissile("PisCaseSpawn",0,0,16,-2,0)
SISG C 3 A_Light0
SISG DE 2
SISG E 0 A_Refire
Goto Ready
SISG A 0
AltFire:
SSRG A 0 A_JumpIfInventory("Bullets",12,2)
SSRG A 0 A_JumpIfInventory("MaxBullets",1,2)
SSRG A 0
Goto Ready
SSRG A 0 A_JumpIfInventory("Bullets",12,6)
SSRG A 0 A_JumpIfInventory("MaxBullets",1,2)
SSRG A 0
Goto Ready
SSRG A 0 A_TakeInventory("MaxBullets",1)
SSRG A 0 A_GiveInventory("Bullets",1)
Goto AltFire+3
SSRG A 0
SSRG A 0 A_PlaySound("weapons/pistolreload")
SSRG ABCDEFGHIJKL 3
SSRG L 0
Goto Ready
Flash:
SISF A 3 BRIGHT
SISF B 3 BRIGHT A_FireBullets(2,0,1,7,"BulletPuff")
SISF C 3 BRIGHT
Stop
}
}
// capsulas - não se preocupe com isso
ACTOR PisCaseSpawn
{
Speed 20
PROJECTILE
+NOCLIP
States
{
Spawn:
TNT1 AA 1 A_CustomMissile("PistolCasing",0,0,random(85,95),2,random(-10,10))
Stop
}
}
ACTOR PistolCasing
{
Height 8
Radius 6
Speed 4
Scale 0.26
BounceFactor 0.4
Mass 1
PROJECTILE
+DOOMBOUNCE
-NOGRAVITY
-NOBLOCKMAP
SeeSound "weapons/bulletcasing"
States
{
Spawn:
CAS2 A 0
CAS2 ABCD 2
Goto Spawn+1
Death:
CAS2 A 0 A_Playsound("NULL")
CAS2 A 0 A_Jump(64,4)
CAS2 A 0 A_Jump(85,4)
CAS2 A 0 A_Jump(128,4)
CAS2 A 40
Stop
CAS2 B 40
Stop
CAS2 C 30
Stop
CAS2 D 30
Stop
}
}
EAE, alguem sabe onde está o problema?
Se quiserem, podem baixa-la aqui:
http://d.turboupload.com/d/2198383/a_po ... d.rar.html
O problema eh o seguinte:
O sistema de reload fucniona perfeitamente, mas se o jogador tem menos de 12 balas para carregar, a arma recarga mas não faz animação de recarregamento...
O Decorate da arma eatá logo abaixo:
// munição "fantasia" que fica no pente
ACTOR Bullets : Ammo
{
Inventory.Amount 12
Inventory.MaxAmount 12
Ammo.BackpackAmount 12
Ammo.BackpackMaxAmount 12
Inventory.icon "CLP1C0"
}
// munição total da arma - usada em jogo
ACTOR MaxBullets : Ammo 10002
{
Inventory.Amount 12
Inventory.MaxAmount 150
Ammo.BackpackAmount 24
Ammo.BackpackMaxAmount 350
Inventory.PickupMessage "Bullets"
Inventory.Icon "CLP1C0"
States
{
Spawn:
CLP1 C -1
Loop
}
}
// a porra da pistola
ACTOR Doom3Pistol : Weapon 30001
{
//$Category D3Weapons
Inventory.Icon "PISTA0"
Inventory.PickupMessage "Pistol"
Inventory.PickupSound "misc/d3pickup"
Weapon.SelectionOrder 1900
Weapon.AmmoType "Bullets"
Weapon.AmmoGive 12
Weapon.AmmoUse 1
Weapon.Kickback 2
+AMMO_OPTIONAL
AttackSound "weapons/pistolfire"
States
{
Spawn:
PIST A -1
Loop
Ready:
SISG A 1 A_WeaponReady
Loop
Deselect:
SISG A 1 A_Lower
Loop
Select:
SISG A 0 A_PlaySound("weapons/pistolraise")
SISG A 1 A_Raise
Goto Select+1
Fire:
SISG A 0 A_JumpIfInventory("Bullets",1,3)
SISG A 0 A_JumpIfInventory("Bullets",0,1)
SISG A 0
Goto AltFire
SISG A 0 A_GunFlash
SISG A 0 A_Light2
SISG A 3 BRIGHT
SISG B 3 BRIGHT
SISG C 0 A_FireCustomMissile("PisCaseSpawn",0,0,16,-2,0)
SISG C 3 A_Light0
SISG DE 2
SISG E 0 A_Refire
Goto Ready
SISG A 0
AltFire:
SSRG A 0 A_JumpIfInventory("Bullets",12,2)
SSRG A 0 A_JumpIfInventory("MaxBullets",1,2)
SSRG A 0
Goto Ready
SSRG A 0 A_JumpIfInventory("Bullets",12,6)
SSRG A 0 A_JumpIfInventory("MaxBullets",1,2)
SSRG A 0
Goto Ready
SSRG A 0 A_TakeInventory("MaxBullets",1)
SSRG A 0 A_GiveInventory("Bullets",1)
Goto AltFire+3
SSRG A 0
SSRG A 0 A_PlaySound("weapons/pistolreload")
SSRG ABCDEFGHIJKL 3
SSRG L 0
Goto Ready
Flash:
SISF A 3 BRIGHT
SISF B 3 BRIGHT A_FireBullets(2,0,1,7,"BulletPuff")
SISF C 3 BRIGHT
Stop
}
}
// capsulas - não se preocupe com isso
ACTOR PisCaseSpawn
{
Speed 20
PROJECTILE
+NOCLIP
States
{
Spawn:
TNT1 AA 1 A_CustomMissile("PistolCasing",0,0,random(85,95),2,random(-10,10))
Stop
}
}
ACTOR PistolCasing
{
Height 8
Radius 6
Speed 4
Scale 0.26
BounceFactor 0.4
Mass 1
PROJECTILE
+DOOMBOUNCE
-NOGRAVITY
-NOBLOCKMAP
SeeSound "weapons/bulletcasing"
States
{
Spawn:
CAS2 A 0
CAS2 ABCD 2
Goto Spawn+1
Death:
CAS2 A 0 A_Playsound("NULL")
CAS2 A 0 A_Jump(64,4)
CAS2 A 0 A_Jump(85,4)
CAS2 A 0 A_Jump(128,4)
CAS2 A 40
Stop
CAS2 B 40
Stop
CAS2 C 30
Stop
CAS2 D 30
Stop
}
}
EAE, alguem sabe onde está o problema?
-
- Mensagens: 779
- Registrado em: Sex Jan 05, 2007 3:55 am
- 18
-
- Mensagens: 779
- Registrado em: Sex Jan 05, 2007 3:55 am
- 18
Não usa ACS, é DECORATE puro! Eu reprogramei todo esse reload, tudo que eu fiz está ai... o problema eh a animação, pois o reload em si tah funcionando perfeitamente...Syshigher escreveu:Você já verificou o ACS usado para fazer esse reload?
Onde eu acho isso? lembrando que o reload deve usar o AltFire, se for automatico como os do AlandoGuns.wad nem precisa xDSyshigher escreveu:Qualquer coisa dá uma olhada nos decorates do Zen Dynamics, lá tem uns decorates e reloads robustos! xD
http://www.doomworld.com/idgames/index.php?id=14669
Zen Dynamics é um mod feito pelo Xaser! Quem sabe eu não faça um review dele? xD
E sim, quase todas as armas (ou todas) tem altfire ^^
Zen Dynamics é um mod feito pelo Xaser! Quem sabe eu não faça um review dele? xD
E sim, quase todas as armas (ou todas) tem altfire ^^
-
- Mensagens: 779
- Registrado em: Sex Jan 05, 2007 3:55 am
- 18