| closedHook flag captures |
| Started by webmaze on 06-04-2010, 07:33 PM |
Threads: 3
Joined: Apr 2008
Hi, i'm programming an achievements plugins for dod. Its coming along just fine, i'm just starting: hooking DeathMsg to count deaths for each weapon and giving it a level: wood, copper, bronze, silver, etc. you get the idea. All registers go then to mysql and is distributed along two servers.rnI'm planning to add headshots events, and deaths from certain distances. Now, how could i know when a player captures a flag? could you give a hand? o point some already made plugin to look at? thanks. kind regards.rnrnZeta
Threads: 75
Joined: Nov 2007
Check this : https://www.dodplugins.net/forums/showthread.php?t=1528rnrnrnI never used client_score(id, score, total); myself but check it out (ref.: dodx.inc)
Threads: 3
Joined: Apr 2008
thats great, i didn't know it. thanks for the prompt response.rnrnZeta
Threads: 3
Joined: Apr 2008
couple more questions: how can i know for sure whether i'm capping a flag or an objective? they use sometimes the same entity dod_capture_area; checking whether is an allies or axis paras maps? charlie doesn't have that info and there are objectives; checking if the score is greater or equal than 5?. I've look at the score reward plugin and i'm not sure it can properly diferenciate between the two. any ideas? king regards.rnrnZeta

