MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | shoot_dam() |
| 2 | |
| 3 | FUNKTION: |
| 4 | static int shoot_dam(mapping shoot) |
| 5 | |
| 6 | DEFINIERT IN: |
| 7 | /std/ranged_weapon.c |
| 8 | |
| 9 | ARGUMENTE: |
| 10 | mapping shoot - Schussdaten |
| 11 | |
| 12 | BESCHREIBUNG: |
| 13 | Erhaelt von /std/ranged_weapon::cmd_shoot() die Schussdaten und berechnet |
| 14 | den Schaden der Waffe, basierend auf den P_SHOOTING_WC von Waffe und |
| 15 | Munition sowie der Geschicklichkeit des Schuetzen. HitFuncs der Munition |
| 16 | und Skills werden hier ebenfalls beruecksichtigt. |
| 17 | |
| 18 | RUECKGABEWERT: |
| 19 | Schaden. Ebenfalls in 'shoot' unter SI_SKILLDAMAGE aktualisiert. |
| 20 | |
| 21 | BEMERKUNGEN: |
| 22 | 'shoot' enthaelt normalerweise folgende Eintraege: |
| 23 | * Key P_WEAPON: die Schusswaffe |
| 24 | * Key P_WEAPON_TYPE: P_AMMUNITION, also die Munitions-ID |
| 25 | * Key P_STRETCH_TIME: P_STRETCH_TIME der Waffe |
| 26 | * Key P_WC: P_SHOOTING_WC der Waffe |
| 27 | * Key P_SHOOTING_WC: P_SHOOTING_WC der Munition |
| 28 | * Key P_AMMUNITION: Munitionsobjekt (eventuell Unit) |
| 29 | * Key SI_ENEMY: gueltigen Gegner |
| 30 | * Key SI_SKILLDAMAGE_TYPE: Schaden (aus P_DAM_TYPE der Munition) |
| 31 | * Key SI_SKILLDAMAGE_MSG/2: Munitionsname |
| 32 | |
| 33 | SIEHE AUCH: |
| 34 | Generell: P_AMMUNITION, P_SHOOTING_WC, P_STRETCH_TIME |
| 35 | Methoden: FindRangedTarget(L), cmd_shoot(L) |
| 36 | Skills: UseSkill(L), SkillResTransfer(L) |
| 37 | Attribute: QueryAttribute |
| 38 | Sonstiges: fernwaffen, HitFunc |
| 39 | |
| 40 | 28.Jul 2014 Gloinson |