| closedmortar-launcher |
| Started by ghzero on 04-03-2009, 08:01 PM |
Threads: 42
Joined: Sep 2007
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 ?
Threads: 103
Joined: May 2005
could probably catch it thru Ham_Use on the button that is used to trigger them
Threads: 42
Joined: Sep 2007
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.
Threads: 42
Joined: Sep 2007
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?

