Zesstra | 953f997 | 2017-02-18 15:37:36 +0100 | [diff] [blame^] | 1 | |
| 2 | FindRangedTarget() |
| 3 | ****************** |
| 4 | |
| 5 | |
| 6 | FUNKTION |
| 7 | ======== |
| 8 | |
| 9 | static string FindRangedTarget(string str, mapping shoot) |
| 10 | |
| 11 | |
| 12 | DEFINIERT IN |
| 13 | ============ |
| 14 | |
| 15 | /std/ranged_weapon.c |
| 16 | |
| 17 | |
| 18 | ARGUMENTE |
| 19 | ========= |
| 20 | |
| 21 | string str - Schusssyntax |
| 22 | mapping shoot - Schussdaten |
| 23 | |
| 24 | |
| 25 | BESCHREIBUNG |
| 26 | ============ |
| 27 | |
| 28 | Erhaelt von /std/ranged_weapon::cmd_shoot() die Schussdaten und eine |
| 29 | eventuell bereits modifizierte Syntax und versucht einen passenden Gegner |
| 30 | im Raum oder im Gebiet (P_SHOOTING_AREA) zu finden. |
| 31 | Dieser wird in SI_ENEMY im Mapping 'shoot' eingetragen und ein Wert != 0 |
| 32 | zurueckgegeben. |
| 33 | |
| 34 | |
| 35 | RUECKGABEWERT |
| 36 | ============= |
| 37 | |
| 38 | 0 bei Fehlschlag |
| 39 | != 0 bei gueltigem SI_ENEMY in 'shoot' |
| 40 | |
| 41 | |
| 42 | BEMERKUNGEN |
| 43 | =========== |
| 44 | |
| 45 | 'shoot' enthaelt normalerweise folgende Eintraege: |
| 46 | * Key P_WEAPON: die Schusswaffe |
| 47 | * Key P_WEAPON_TYPE: P_AMMUNITION, also die Munitions-ID |
| 48 | * Key P_STRETCH_TIME: P_STRETCH_TIME der Waffe |
| 49 | * Key P_WC: P_SHOOTING_WC der Waffe |
| 50 | |
| 51 | |
| 52 | SIEHE AUCH |
| 53 | ========== |
| 54 | |
| 55 | Generell: P_AMMUNITION, P_SHOOTING_WC, P_STRETCH_TIME |
| 56 | Methoden: shoot_dam(L), cmd_shoot(L) |
| 57 | Gebiet: P_RANGE, P_SHOOTING_AREA, P_TARGET_AREA |
| 58 | Team: PresentPosition(L) |
| 59 | Suche: present, SelectFarEnemy(L) |
| 60 | Syntax: _unparsed_args(L) |
| 61 | Sonstiges: fernwaffen |
| 62 | |
| 63 | 28.Jul 2014 Gloinson |