Author |
Message |
xor eax Novice
Joined: Jun 01 2005 Posts: 93 Location: Spain Offline
|
Posted: Thu Aug 25, 2005 8:10 pm Post subject: help with bounty |
 |
|
|
|
I'm writing my first asss module and everything is going ok except for the bounty parameter of the CB_KILL callback.
The value received in the bounty parameter is always the real bounty value -1 or -2 (ie, if the bounty is 1000 the function receives 999 or 998 in the bounty parameter). I tried changing the InitialBounty setting but it does same thing (for 100 bty the callback receives 99 or 98 in the bounty parameter).
I also tried locking/unlocking the playerdata at the start/end of the CB_KILL function, using Iplayerdata->Lock/Unlock interface calls. I don't think that Lock/Unlock could affect the bty parameter, but I did it anyway :p
The other parameters are ok (arena, killer, killed, flags), I'm using them to display a custom *arena kill message.
I'm using Continuum 0.39pr1 and Subspace 0.35 as clients (one kills the other) to do this test at an asss server (asss 1.4.0 built at Jun 3 2005 23:36:24) at home.
Is this a bug or am I doing something wrong? |
|
Back to top |
|
 |
Grelminar Creator of Asss
Joined: Feb 26 2003 Posts: 378 Offline
|
Posted: Fri Aug 26, 2005 2:50 am Post subject: |
 |
|
|
|
The "bounty" parameter is misnamed: it's not really bounty, it's just the value that the killed client reports, which typically gets added to the killer's score, and also shows up in the kill message. There are various settings that cause the client to send values for that field other than its actual bounty. I think they've historically been used in dueling zone, but I don't actually know which settings they are and how they work. I'd start looking in the [Kill] section. |
|
Back to top |
|
 |
xor eax Novice
Joined: Jun 01 2005 Posts: 93 Location: Spain Offline
|
Posted: Fri Aug 26, 2005 11:41 am Post subject: |
 |
|
|
|
Thank you |
|
Back to top |
|
 |
Smong Server Help Squatter

Joined: 1043048991 Posts: 0x91E Offline
|
Posted: Fri Aug 26, 2005 4:51 pm Post subject: |
 |
|
|
|
This setting Misc:NearDeathLevel will make your bounty decrement when your energy decreases across that boundary due to damage.
I can't remember if I've requested this before or not but a bounty decreased callback built into game.c would let you do all kinds of cool stuff, I doubt it would add significantly more load to the server. |
|
Back to top |
|
 |
xor eax Novice
Joined: Jun 01 2005 Posts: 93 Location: Spain Offline
|
Posted: Fri Aug 26, 2005 5:37 pm Post subject: |
 |
|
|
|
Misc:NearDeathLevel was set to 10. It explains it all, thx Grelminar and Smong.
With a low value like 10 the NearDeath routine which decrement bounty by 1 was being called once (sometimes twice) before the player died. |
|
Back to top |
|
 |
Chambahs Power attack

Joined: Jun 19 2005 Posts: 820 Offline
|
Posted: Sun Aug 28, 2005 3:07 am Post subject: |
 |
|
|
|
EDIT: Said something rude, dont wanna start fights |
|
Back to top |
|
 |
|