Zesstra | 1862697 | 2017-01-31 10:38:27 +0100 | [diff] [blame^] | 1 | shoot_dam() |
| 2 | =========== |
| 3 | |
| 4 | FUNKTION |
| 5 | -------- |
| 6 | :: |
| 7 | |
| 8 | static int shoot_dam(mapping shoot) |
| 9 | |
| 10 | DEFINIERT IN |
| 11 | ------------ |
| 12 | :: |
| 13 | |
| 14 | /std/ranged_weapon.c |
| 15 | |
| 16 | ARGUMENTE |
| 17 | --------- |
| 18 | :: |
| 19 | |
| 20 | mapping shoot - Schussdaten |
| 21 | |
| 22 | BESCHREIBUNG |
| 23 | ------------ |
| 24 | :: |
| 25 | |
| 26 | Erhaelt von /std/ranged_weapon::cmd_shoot() die Schussdaten und berechnet |
| 27 | den Schaden der Waffe, basierend auf den P_SHOOTING_WC von Waffe und |
| 28 | Munition sowie der Geschicklichkeit des Schuetzen. HitFuncs der Munition |
| 29 | und Skills werden hier ebenfalls beruecksichtigt. |
| 30 | |
| 31 | RUECKGABEWERT |
| 32 | ------------- |
| 33 | :: |
| 34 | |
| 35 | Schaden. Ebenfalls in 'shoot' unter SI_SKILLDAMAGE aktualisiert. |
| 36 | |
| 37 | BEMERKUNGEN |
| 38 | ----------- |
| 39 | :: |
| 40 | |
| 41 | 'shoot' enthaelt normalerweise folgende Eintraege: |
| 42 | * Key P_WEAPON: die Schusswaffe |
| 43 | * Key P_WEAPON_TYPE: P_AMMUNITION, also die Munitions-ID |
| 44 | * Key P_STRETCH_TIME: P_STRETCH_TIME der Waffe |
| 45 | * Key P_WC: P_SHOOTING_WC der Waffe |
| 46 | * Key P_SHOOTING_WC: P_SHOOTING_WC der Munition |
| 47 | * Key P_AMMUNITION: Munitionsobjekt (eventuell Unit) |
| 48 | * Key SI_ENEMY: gueltigen Gegner |
| 49 | * Key SI_SKILLDAMAGE_TYPE: Schaden (aus P_DAM_TYPE der Munition) |
| 50 | * Key SI_SKILLDAMAGE_MSG/2: Munitionsname |
| 51 | |
| 52 | SIEHE AUCH |
| 53 | ---------- |
| 54 | :: |
| 55 | |
| 56 | Generell: P_AMMUNITION, P_SHOOTING_WC, P_STRETCH_TIME |
| 57 | Methoden: FindRangedTarget(L), cmd_shoot(L) |
| 58 | Skills: UseSkill(L), SkillResTransfer(L) |
| 59 | Attribute: QueryAttribute |
| 60 | Sonstiges: fernwaffen, HitFunc |
| 61 | |
| 62 | 28.Jul 2014 Gloinson |
| 63 | |