Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
help with bounty

 
Post new topic   Reply to topic Printable version
 View previous topic  Team hits Post :: Post ASSS Server  View next topic  
Author Message
xor eax
Novice


Joined: Jun 01 2005
Posts: 93
Location: Spain
Offline

PostPosted: Thu Aug 25, 2005 8:10 pm    Post subject: help with bounty Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Send email
Grelminar
Creator of Asss


Joined: Feb 26 2003
Posts: 378
Offline

PostPosted: Fri Aug 26, 2005 2:50 am    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Send email Visit posters website
xor eax
Novice


Joined: Jun 01 2005
Posts: 93
Location: Spain
Offline

PostPosted: Fri Aug 26, 2005 11:41 am    Post subject: Reply to topic Reply with quote

Thank you
Back to top
View users profile Send private message Add User to Ignore List Send email
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Fri Aug 26, 2005 4:51 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
xor eax
Novice


Joined: Jun 01 2005
Posts: 93
Location: Spain
Offline

PostPosted: Fri Aug 26, 2005 5:37 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Send email
Chambahs
Power attack
Power attack


Joined: Jun 19 2005
Posts: 820
Offline

PostPosted: Sun Aug 28, 2005 3:07 am    Post subject: Reply to topic Reply with quote

EDIT: Said something rude, dont wanna start fights
Back to top
View users profile Send private message Add User to Ignore List
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 47 page(s) served in previous 5 minutes.

phpBB Created this page in 0.679979 seconds : 29 queries executed (97.3%): GZIP compression disabled