blob: eb34c14f7fbe14a155080b7692ce2c3500ac54d5 [file] [log] [blame]
Zesstra18626972017-01-31 10:38:27 +01001shoot_dam()
2===========
3
4FUNKTION
5--------
6::
7
8 static int shoot_dam(mapping shoot)
9
10DEFINIERT IN
11------------
12::
13
14 /std/ranged_weapon.c
15
16ARGUMENTE
17---------
18::
19
20 mapping shoot - Schussdaten
21
22BESCHREIBUNG
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
31RUECKGABEWERT
32-------------
33::
34
35 Schaden. Ebenfalls in 'shoot' unter SI_SKILLDAMAGE aktualisiert.
36
37BEMERKUNGEN
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
52SIEHE 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
6228.Jul 2014 Gloinson
63