Charging the attack - Technical Code here
Forum rules
This forum houses many years of development, tracing back to some of the earliest posts that exist on the board.
Its current use is for the continued development of the server and game it has always served: The Mana World.
Charging the attack - Technical Code here
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.
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.
- ElvenProgrammer
- Founder
- Posts: 2526
- Joined: 13 Apr 2004, 19:11
- Location: Italy
- Contact:
- ElvenProgrammer
- Founder
- Posts: 2526
- Joined: 13 Apr 2004, 19:11
- Location: Italy
- Contact:
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.
This is the only way to prentend evil hackers from making there own client where they always gets a giant charge in no time.
- ElvenProgrammer
- Founder
- Posts: 2526
- Joined: 13 Apr 2004, 19:11
- Location: Italy
- Contact:
- ElvenProgrammer
- Founder
- Posts: 2526
- Joined: 13 Apr 2004, 19:11
- Location: Italy
- Contact:
- ElvenProgrammer
- Founder
- Posts: 2526
- Joined: 13 Apr 2004, 19:11
- Location: Italy
- Contact:
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.
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.
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.