Charging the attack - Technical Code here

Content and general development discussion, including maps, quests, and server code from the development team.
Post Reply
MathGeek
Peon
Peon
Posts: 52
Joined: Sat Nov 13, 2004 11:07 pm
Location: Calgary AB. Canada

Charging the attack - Technical Code here

Post by MathGeek » Sat Dec 04, 2004 10:47 pm

Came up with an idea for charging up the attack like in SOM.

Here's the code:

//player->attack_power starts as an integer at 0

if(key[KEY_LCONTROL]) {
if ( attack power == 0 )
attack( 0 );
player->attack_power++;
}
else{
if ( player->attack_power > 1 ){
attack(player->attack_power);
}
player->attack_power = 0;
}

So I think that would allow for minimal alteration to the game. The attack function is not the one used in the game, but can be changed easy enough. Hope that this can be done.
User avatar
ElvenProgrammer
TMW Adviser
TMW Adviser
Posts: 2526
Joined: Tue Apr 13, 2004 8:11 pm
Location: Italy
Contact:

Post by ElvenProgrammer » Sun Dec 05, 2004 10:41 am

I understand your idea, but the code should be improved a bit, it's not that hard. The problem is the time else I would have done it...if you can manage to create some working code give it to me and I'll add it. :D
T7g
Peon
Peon
Posts: 7
Joined: Wed Nov 17, 2004 9:53 am

Post by T7g » Tue Dec 07, 2004 6:44 pm

yeah, and don't forget, SoM's battle system penalized you for attacking at low charge levels
User avatar
ElvenProgrammer
TMW Adviser
TMW Adviser
Posts: 2526
Joined: Tue Apr 13, 2004 8:11 pm
Location: Italy
Contact:

Post by ElvenProgrammer » Tue Dec 07, 2004 9:34 pm

Mmm this is a bit harder they only thing I can promise is that if you attack while charging you won't do any damage.
User avatar
SimEdw
Peon
Peon
Posts: 12
Joined: Sat Aug 28, 2004 10:28 pm
Location: Sweden
Contact:

Post by SimEdw » Thu Dec 09, 2004 9:32 pm

One way to do it is to send a package for every sec of charging. Then when the cilent sends the attack to the server the server can check if the charging was high enough and what damge that should be caused.

This is the only way to prentend evil hackers from making there own client where they always gets a giant charge in no time.
User avatar
ElvenProgrammer
TMW Adviser
TMW Adviser
Posts: 2526
Joined: Tue Apr 13, 2004 8:11 pm
Location: Italy
Contact:

Post by ElvenProgrammer » Thu Dec 09, 2004 10:16 pm

The problem is that athena doesn't support this fighting system. :(
User avatar
Rotonen
TMW Adviser
TMW Adviser
Posts: 3154
Joined: Wed Sep 08, 2004 8:48 pm
Location: Espoo, Finland

Post by Rotonen » Fri Dec 10, 2004 3:14 pm

Aren't we developing our own server in any case, so why should we care about what Athena can and cannot do?
User avatar
ElvenProgrammer
TMW Adviser
TMW Adviser
Posts: 2526
Joined: Tue Apr 13, 2004 8:11 pm
Location: Italy
Contact:

Post by ElvenProgrammer » Fri Dec 10, 2004 3:52 pm

Sure, but even if SimEdw is going along well with his server, it will take a while before it replaces eAthena, so it's better to consider all the alternatives. :roll:
User avatar
Rotonen
TMW Adviser
TMW Adviser
Posts: 3154
Joined: Wed Sep 08, 2004 8:48 pm
Location: Espoo, Finland

Post by Rotonen » Sun Dec 12, 2004 12:46 am

But designing too much stuff for our "temporary" server and then moving it all into our own server could cause a lot of unnecessary work..?
User avatar
ElvenProgrammer
TMW Adviser
TMW Adviser
Posts: 2526
Joined: Tue Apr 13, 2004 8:11 pm
Location: Italy
Contact:

Post by ElvenProgrammer » Sun Dec 12, 2004 10:35 am

Well surely we should think carefully about it, so we can migrate to our own server with not much trouble :D
Frankablu
Peon
Peon
Posts: 2
Joined: Mon Feb 14, 2005 9:46 pm

Post by Frankablu » Mon Feb 14, 2005 9:49 pm

Why not have the attack charge code client side and then when the attack is finished charging send the attack command to the server with the target?

(Yes I know you could cheat with a hacked client but you can enforce it later with your own server)
User avatar
maci
Warrior
Warrior
Posts: 507
Joined: Sun Dec 05, 2004 9:01 pm
Location: Germany
Contact:

Post by maci » Mon Feb 14, 2005 10:08 pm

but you can enforce it later with your own server
hmm this wouldnt be THAT easy
ElvenProgrammer wrote:Maci: don't be rude, we're here to help people ;)
Frankablu
Peon
Peon
Posts: 2
Joined: Mon Feb 14, 2005 9:46 pm

Post by Frankablu » Mon Feb 14, 2005 10:37 pm

I am talking about a temperately hack to get the feature implemented not a permanent solution the charging would have to be moved to the server eventually.
User avatar
Kyokai
Novice
Novice
Posts: 323
Joined: Tue Feb 15, 2005 3:55 am
Location: USA, North Carolina
Contact:

Post by Kyokai » Thu Feb 17, 2005 12:16 am

If I remember right, in SoM, you either had an attack at full power (100% charge) or at a tenth of its strength for anything lower.

Don't forget that we'll need to put in over-charged attacks like SoM had (200%, 300%, etc.) This works in conjuntion with the weapon skills system.
The Mana World System Coordinator.
View the Systems
So what does the systems coordinator actually do? My job is to take your ideas for TMW and build them into working aspects of gameplay that can be implemented by the artists and programmers. If there's anything you think we can do better or differently, let me know.
Post Reply