~ubuntu-branches/ubuntu/precise/egoboo-data/precise

« back to all changes in this revision

Viewing changes to modules/bishopiacity.mod/objects/pistol.obj/script.txt

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2010-04-25 10:20:11 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100425102011-1aosouybjkexdg9v
Tags: 1:2.7.7-1
* New Upstream Release
* Switch to debhelper

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// ZZ> This function makes an item fall to the floor when spawned
 
2
IfSpawned                               //
 
3
  MakeAmmoKnown                           //
 
4
  tmpargument = ACTIONJB                  //
 
5
  DoAction                                //
 
6
  KeepAction                              //
 
7
  MakeCrushValid
 
8
IfCrushed
 
9
  tmpx = selfx
 
10
  tmpy = selfy
 
11
  tmpdistance = selfz
 
12
  tmpargument = 1
 
13
  SpawnExactParticle
 
14
  SpawnExactParticle
 
15
  SpawnExactParticle
 
16
  SpawnExactParticle
 
17
  GoPoof
 
18
  tmpargument = 2
 
19
  SendMessageNear
 
20
IfDropped                               // Make it lie on floor
 
21
  KeepAction                              //
 
22
IfUsed                                  // Drop shells or make a click sound
 
23
  IfAmmoOut
 
24
    tmpargument = 1
 
25
    tmpdistance = rand & 2047 + 11000
 
26
    PlaySound
 
27
  Else
 
28
    tmpx = selfammo & 1
 
29
    tmpy = 0
 
30
    IfXIsMoreThanY
 
31
      tmpargument = 35
 
32
      SetReloadTime
 
33
    tmpx = selfx
 
34
    tmpy = selfy
 
35
    tmpdistance = selfz
 
36
    tmpargument = 4
 
37
    SpawnExactParticle
 
38
    IfStateIs0
 
39
      tmpargument = 3
 
40
      tmpdistance = rand & 2047 + 10000
 
41
      PlaySound
 
42
      tmpargument = 1
 
43
    Else
 
44
      tmpargument = 4
 
45
      tmpdistance = rand & 2047 + 10000
 
46
      PlaySound
 
47
      tmpargument = 0
 
48
    SetState
 
49
    tmpargument = [WAKE]
 
50
    tmpdistance = [WAKE]
 
51
    OrderSpecialID
 
52
 
 
53
IfHitGround                             // Play the drop sound
 
54
  tmpargument = 0                         //
 
55
  tmpdistance = rand & 2047 + 8000        //
 
56
  PlaySound                               //
 
57
IfGrabbed                               // Tell them what they've won...
 
58
  SetTargetToWhoeverIsHolding             //
 
59
  IfTargetIsAPlayer                       //
 
60
    tmpargument = 0                       //
 
61
    IfAmmoOut                             //
 
62
      tmpargument = 1                       //
 
63
    SendMessageNear                       //
 
64
End                                     // All done