DoomPlayer Doubt!! [Random starting weapon?]
- kolobosney
- Topic Author
- Dark Imp
Less
More
- Posts: 8
9 years 9 months ago #1
by kolobosney
DoomPlayer Doubt!! was created by kolobosney
Please, someone ....I need to know if there's a way to make the Doom Player starts with a random weapon! Someone knows how to do it??
Please Log in or Create an account to join the conversation.
- NourPrince
- Chaingunner
Less
More
- Posts: 63
9 years 9 months ago #2
by NourPrince
Replied by NourPrince on topic DoomPlayer Doubt!!
Well, I don't think its possible, as every single doom mod starts with its starting weapon, but random weapon? I know about the random item, random monsters, RANDOM Projectiles, but random weapons on start? and i dont think RandomSpawner decorate will help you in this situation
Please Log in or Create an account to join the conversation.
- Blue Shadow
- Administrator
Less
More
- Posts: 1129
9 years 9 months ago - 9 years 9 months ago #3
by Blue Shadow
Replied by Blue Shadow on topic DoomPlayer Doubt!!
It can be done in a way; give the player a
start item
which is like the following:
You can add as many weapons to that as you need.
Code:
ACTOR RandomWeaponGiver : CustomInventory
{
States
{
Pickup:
TNT1 A 0 A_Jump(256, "Fist", "Chainsaw", "Pistol", "Shotgun", "Chaingun", "RocketLauncher")
Fist:
TNT1 A 0 A_GiveInventory("Fist")
Stop
Chainsaw:
TNT1 A 0 A_GiveInventory("Chainsaw")
Stop
Pistol:
TNT1 A 0 A_GiveInventory("Pistol")
Stop
Shotgun:
TNT1 A 0 A_GiveInventory("Shotgun")
Stop
Chaingun:
TNT1 A 0 A_GiveInventory("Chaingun")
Stop
RocketLauncher:
TNT1 A 0 A_GiveInventory("RocketLauncher")
Stop
}
}
You can add as many weapons to that as you need.
Last edit: 9 years 9 months ago by Blue Shadow.
Please Log in or Create an account to join the conversation.
- kolobosney
- Topic Author
- Dark Imp
Less
More
- Posts: 8
9 years 9 months ago #4
by kolobosney
Replied by kolobosney on topic DoomPlayer Doubt!!
:yell: It works, awesome! Just like what I want! You guys really are a great help hand!! Thank you very much!!
Please Log in or Create an account to join the conversation.