Page 1 of 1

Trying to Add Realism and Make My Game Easier

Posted: May 13th, 2012, 4:13 pm
by donnelly517
(This isn't in SVN. Though I'm using it, most of my games are still in the normal release for stability.)
In one of my rpg games I set bullets for guns to fire at realistic speeds. I soon realized that that would be a problem because AI has perfect accuracy. This makes the game very difficult because you have to keep moving and changing direction is almost sure to get you hit. I'm wondering if anybody knows of a way to give either weapons or AI imperfect accuracy.

Another problem I have is that if a enemy is destroyed with 1 hit or shot, it'll still get one attack on you before it dies. You can shoot an enemy and just before it's dying animation it'll fire 1 shot at you. This don't make the game as hard as the first problem, but it's pretty unrealistic and gets annoying with tough enemies.

Re: Trying to Add Realism and Make My Game Easier

Posted: May 13th, 2012, 6:05 pm
by chocolatepie33
First off: are you, or are you not, using SVN? I'm assuming you are since you talk about guns, which I believe are only in SVN at this point.
second: since the coding for guns is probably based off of the coding from Cube 2: Sauerbraten, you might be better off asking at Quadropolis. If Hirato doesn't answer your question, they could probably answer it much faster.

Re: Trying to Add Realism and Make My Game Easier

Posted: May 13th, 2012, 7:23 pm
by Hirato
@Chocolatepie: He's using the RPG.

But anyway... it sounds like the status effect you gave to your gun and bullets do damage a LOT of damage and that damage is done over time to boot.
You will probably want to make this nearly instant and perhaps assign it a type like ATTACK_PIERCE so that you and the enemies can apply damage resistances and thresholds to it.

As for making the trajectories kind of fuzzy... If I haven't already, I intend to make weapons with an angle set whilst with a target of T_SINGLE, T_AREA or T_MULTI apply a random directional offset, so just give the weapon an angle if you want some randomness - I'll probably scale this down with the skill in using the weapon.

Re: Trying to Add Realism and Make My Game Easier

Posted: May 15th, 2012, 9:21 pm
by donnelly517
How do I change angles for weapons properly. I wanted to learn this anyway to make a jetpack which fires downwards.

Re: Trying to Add Realism and Make My Game Easier

Posted: May 17th, 2012, 6:14 pm
by chocolatepie33
actually, Red Eclipse has a working jetpack, so you may want to look into that. however, that'd be some relatively complicated source code modifying.