JohnoRobson / GodotBattleRoyal

Other
3 stars 1 forks source link

Weapon refactor #5

Closed JohnoRobson closed 1 year ago

JohnoRobson commented 1 year ago

Removed the default weapon and added a new one called "SMG." Actors no longer spawn with weapons, instead they must be picked up by walking into them. Weapons are dropped on death. Ammo is not implemented. A new AI state was added for finding a weapon when an AI actor does not have one. Fixed a bug where weapon knockback only applied if the actor wasn't trying to move.

The Weapon class extends the new GameItem class, which is intended to be used for things that exist in the game world that actors can pick up or that can be stored in an inventory, such as weapons, health, and ammo.

Unrelated bug fix: The FindHealthState was bugged so that it would never exit once it was entered. Now there's a max health check that sets the state back to FindEnemy if the actor has max health.

morganwynne commented 1 year ago

Let's start organizing Pull Requests by keeping the PR assigned to the person responsible for the code and adding the other as a Reviewer so we get a chance to review it before it gets merged into main. Does that sound good?

On that note, I am very much still learning how GitHub works, but I do like it a lot.

JohnoRobson commented 1 year ago

Let's start organizing Pull Requests by keeping the PR assigned to the person responsible for the code and adding the other as a Reviewer so we get a chance to review it before it gets merged into main. Does that sound good?

On that note, I am very much still learning how GitHub works, but I do like it a lot.

Sounds good to me!