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 › mortar-launcher
4 posts, 2 people · 773 views Thread Rating: ★★★★★
closedmortar-launcher
Started by ghzero on 04-03-2009, 08:01 PM
ghzero
started this thread
Posts: 160
Threads: 42
Joined: Sep 2007
04-03-2009, 08:01 PM #1

hello,rnrnto know the grenade-thrower and the entity of the grenade we can use this: grenade_throw( id, nadeid, wid ) rnrnbut with what can I know that an player is launching an mortar , like the nebelwerfers in dod_escape ?

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
04-03-2009, 09:26 PM #2

could probably catch it thru Ham_Use on the button that is used to trigger them

ghzero
started this thread
Posts: 160
Threads: 42
Joined: Sep 2007
04-03-2009, 09:53 PM #3

allright...I will check this.rnrnbtw: do you know the problem that maps with mortars sometimes results TK's that are not correct ?! my idea is to find a way to detect that errors and underbinding the teamattack/teamkill that was not really fired by teammates.

ghzero
started this thread
Posts: 160
Threads: 42
Joined: Sep 2007
04-05-2009, 09:32 AM #4

my idea is:rnrn-at plugin-start(mapstart) check als mortar-entity for their names, save them in array.rn-using ham to tracking the touch of triggers by players and usage of func_buttons by players ...check the tartget of the entities with the array of targetnames of func_mortars. save the playerid if use was used to shoot an mortar and the gametime.rn-using ham to check in damage the bitdamage (is mortar?), if true check the inflictor-entity-name with the array of mortars,rnif an trigger was the launcher, correct the attacker to the victim id.rnif an func_button was the launcher, check the saved time and mortar-target-names to correct the attacker to the right one.rnrndo you know that this can works?

Archive › Old Forum Threads › Help › Scripting Help › mortar-launcher
DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC