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