blob: a8b11d53e54fefd1a69855cdd801c1ffda865661 [file] [log] [blame]
Zesstra18626972017-01-31 10:38:27 +01001cmd_shoot()
2===========
3
4FUNKTION
5--------
6::
7
8 static int cmd_shoot(string str)
9
10DEFINIERT IN
11------------
12::
13
14 /std/ranged_weapon.c
15
16ARGUMENTE
17---------
18::
19
20 string str - Schusssyntax
21
22BESCHREIBUNG
23------------
24::
25
26 Kommandofunktion der Fernwaffe. Enthaelt die Vorbereitung und den Schuss.
27
28BEMERKUNGEN
29-----------
30::
31
32 Ist in der Fernwaffe mit AddCmd( ({"schiess", "schiesse"}), "cmd_shoot");
33 angebunden. Will man eine andere Syntax haben, kann man mit
34 AddCmd/RemoveCmd diese umsetzen.
35
36BEISPIELE
37---------
38::
39
40 RemoveCmd(({"schiess", "schiesse"})); // entferne Default-Kommando
41 AddCmd(({"schleuder", "schleudere"}), #'cmd_shoot);
42
43SIEHE AUCH
44----------
45::
46
47 Generell: P_AMMUNITION, P_SHOOTING_WC, P_STRETCH_TIME
48 Methoden: shoot_dam(L), cmd_shoot(L)
49 Kommandos: AddCmd(L), RemoveCmd(L)
50 Syntax: _unparsed_args(L)
51 Sonstiges: fernwaffen
52
5328.Jul 2014 Gloinson
54