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 › bomberman(explosive player) if he has object charges
3 posts, 2 people · 852 views Thread Rating: ★★★★★
closedbomberman(explosive player) if he has object charges
Started by ghzero on 07-23-2008, 02:33 PM
ghzero
started this thread
Posts: 160
Threads: 42
Joined: Sep 2007
07-23-2008, 02:33 PM #1

hello,rnrnI have an idea for an plugin:rna player takes an object charges like a bombpaket (like in dod_charlie), rnif he died until he used that object charge the object charge can make an explosion on the position that the player died.rnso to realise the plugin I need to know how to find out if an player has an object charge taken - maybe it exists an event for that (event for object-charge taken, drop oder use?!).rnrnhope that you can help me..

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
07-23-2008, 06:20 PM #2

to catch when a client picks one up you can use this:n

/* Forward for when a player picks up a object */nforward dod_client_objectpickup(id, objid, pos[3], value);
nnbut you would also have to check if the player still had it (or maybe hook when a player successfully plants one)

ghzero
started this thread
Posts: 160
Threads: 42
Joined: Sep 2007
07-24-2008, 06:53 AM #3
to catch when a client picks one up you can use this:rn
/* Forward for when a player picks up a object */rnforward dod_client_objectpickup(id, objid, pos[3], value);
rnrnbut you would also have to check if the player still had it (or maybe hook when a player successfully plants one)
rnrnthank you - that's one requirement for the plugin.rnrndo you know how to check if an player still had the object ,rnor how to check if the player drop or plant the object?!

Archive › Old Forum Threads › Help › Scripting Help › bomberman(explosive player) if he has object charges
DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC