Dooming Dooming
A forum for the very old computer game doom
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   fchat fChat   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Is this code any good?

 
Post new topic   Reply to topic    Dooming Forum Index -> Doom Editing
View previous topic :: View next topic  
Author Message
Stealth Droid
Forum Regular


Joined: 21 Feb 2007
Posts: 46

PostPosted: Tue Sep 11, 2007 10:54 pm    Post subject: Is this code any good? Reply with quote

Tried decorate... not too good yet, I'm sure, but I tried...

Code:
ACTOR Doom3Chaingun : Weapon replaces chaingun
{
   +AMMO_OPTIONAL
   Inventory.PickupMessage "Ripper Chaingun (Slot 4)"
   Inventory.PickupSound "misc/d3pickup"
   Weapon.SelectionOrder 1300
   Weapon.AmmoType "Clip"
   Weapon.AmmoGive 40
   Weapon.AmmoUse 1
   Weapon.AmmoType2 "Clip"
   Weapon.AmmoUse2 6
   Weapon.sisterweapon Doom3Chaingun2
   Weapon.Kickback 300
   AttackSound "weapons/d3chngunf"
   States
   {
   Spawn:
      MGUN A -1
      LOOP
   Ready:
      D3CG A 1 A_WeaponReady
      LOOP
   Deselect:
      D3CG A 1 A_Lower
      LOOP
   Select: 
      D3CG A 1 A_Raise
      Goto Select
   Fire:
      D3CG A 1 A_JumpIfInventory("Clip", 1, 1)
     goto ready
      D3CG A 3 A_GunFlash
      D3CG B 3
      Goto ready
   AltFire:
    D3CF A 0 A_FireCustomMissile("Tracer",0,0,-2,0,0)
    D3CF A 0 A_FireCustomMissile("Tracer",0,0,-1,1,0)
    D3CF A 0 A_FireCustomMissile("Tracer",0,0,0,2,0)
    D3CF A 0 A_FireCustomMissile("Tracer",0,0,2,0,0)
    D3CF A 0 A_FireCustomMissile("Tracer",0,0,1,-1,0)
    D3CF A 0 A_FireCustomMissile("Tracer",0,1,0,-2,0)
    D3CG ABABABABABAB 2
    goto ready
   Flash:
      D3CF B 0 A_RailAttack(18,6,0,none,none,0,0)
      D3CF A 2 A_FireBullets(6, 0, -1, 0, "BulletPuff", 1)
      D3CF B 1
     D3CF B 0 A_RailAttack(18,6,0,none,none,0,0)
      D3CF A 2 A_FireBullets(6, 0, -1, 0, "BulletPuff", 1)
      D3CF B 1
      Stop
   }
}


Modified from the Doom 3 Weapons mod.
Back to top
View user's profile Send private message
Nutcracker
Please wait while I think about that.


Joined: 19 Feb 2007
Posts: 330
Location: South Dakota Occupation: Manager Interests: Zdoom

PostPosted: Thu Sep 13, 2007 12:08 pm    Post subject: Reply with quote

Nice job! A ripping chaingun? I can't believe I never thought of that myself. ;)
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Stealth Droid
Forum Regular


Joined: 21 Feb 2007
Posts: 46

PostPosted: Fri Sep 14, 2007 11:44 pm    Post subject: Reply with quote

Thanks. Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Dooming Forum Index -> Doom Editing All times are GMT - 11 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum