G36K: A Final Trio Of Questions

Projects that alter game functions but do not include new maps belong here.
Forum rules
The Projects forums are only for projects. If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.
Post Reply
User avatar
masterofpsi
Posts: 73
Joined: Sun Jan 16, 2005 9:13 am
Location: Rocking on.
Contact:

G36K: A Final Trio Of Questions

Post by masterofpsi »

In February, I worked on a G36K in Decorate. Due to hardware failure, school, and a couple of other issues, the project was tabled.

Now, after about 2 hours work (which I should have done months ago), it's just about finished. However, there's a few issues/bugs that I would like some help with. If anyone knows the answers to these few questions, please help. Also, if you have any suggestions, let me know. I can't please everyone, but I don't have to piss everyone off either. :P

1. Currently, when the gun is out of ammo, it does the stereotypical "click click click". I couldn't get A_CheckReload to work, but if you know, please tell me.
2. Casings don't really bounce. At all. They had the DoomBounce flag, but that didn't do any. Is there a state I need to add, or other flags/properties I need to play with?
3. I couldn't get the normal gun's spawn state to spawn the "giver" powerup. Is that because a weapon can't use A_SpawnItem in its spawn state?

I'd like to thank everyone who's helped so far, and anyone who helps now. I'll get a list of credits together, and don't worry, it won't take me as long to finishas the gun did. :wink:
Attachments
g36kgun.wad
G36K: AFE (Almost Final Edition)
(216.29 KiB) Downloaded 312 times
User avatar
The NUtcracker
Posts: 843
Joined: Sun Jan 14, 2007 9:12 pm
Location: South Dakota
Contact:

Post by The NUtcracker »

1. Works for me, and A_CheckReload doesn't check ammo for reloading, it skips the rest of the current state if the player is out of ammo.

2. Add A_Gravity to all the states and add a loop state.

3. Why would you want the gun's spawn state to spawn the g36kgiver?
User avatar
Matt
Posts: 9696
Joined: Sun Jan 04, 2004 5:37 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Debian Bullseye
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
Contact:

Post by Matt »

@NUtcracker: If you're in co-op and you drop an empty weapon, it could lie there forever because everyone already has a G36K by the time they reach it. Also, if you have a G36K with partial ammo and pick up another without going through this extra step, your mag is replenished instead of rounds being added to your inventory.

@MOP: You need to have the G36KGiver "replace" the G36K. Thiw would work in all situations except where you drop the weapon through A_DropInventory or the console (neither of which you need to use, I suspect).

A_CheckReload only works if you don't have +ammo_optional. I'm still working on how to get around this without forcing the player to use a separate reload key, but if you don't mind forcing the player to do so just make sure for all reloading weapon that the alt ammo is the amount in your inventory and the primary ammo is the mag in your gun.
Last edited by Matt on Sun Jun 24, 2007 4:18 pm, edited 1 time in total.
User avatar
Matt
Posts: 9696
Joined: Sun Jan 04, 2004 5:37 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Debian Bullseye
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
Contact:

Post by Matt »

The casing should be a projectile with -nogravity and +bounceonactors. I'd recommend you loop the spinning animation and use the death state to indicate when the casing has come to a stop.
Post Reply

Return to “Gameplay Mods”