Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin
Archive › Old Forum Threads › Help › Scripting Help › Hook flag captures
4 posts, 2 people · 1,131 views Thread Rating: ★★★★★
closedHook flag captures
Started by webmaze on 06-04-2010, 07:33 PM
W webmaze
started this thread
Posts: 35
Threads: 3
Joined: Apr 2008
06-04-2010, 07:33 PM #1

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

Dr.G
posted here
Posts: 776
Threads: 75
Joined: Nov 2007
06-04-2010, 07:52 PM #2

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)

W webmaze
started this thread
Posts: 35
Threads: 3
Joined: Apr 2008
06-04-2010, 10:06 PM #3

thats great, i didn't know it. thanks for the prompt response.rnrnZeta

W webmaze
started this thread
Posts: 35
Threads: 3
Joined: Apr 2008
06-08-2010, 01:06 PM #4

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

Archive › Old Forum Threads › Help › Scripting Help › Hook flag captures
DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC