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

« back to all changes in this revision

Viewing changes to modules/palwater.mod/objects/spear.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
 
  tmpargument = ACTIONJB                  //
4
 
  DoAction                                //
5
 
  KeepAction                              //
6
 
  MakeCrushValid
7
 
  MakeAmmoKnown
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
 
IfThrown                                // Make it attack
21
 
  tmpargument = 2
22
 
  tmpdistance = 1
23
 
  SpawnAttachedParticle
24
 
IfNotDropped                            // Say oops, that's cursed
25
 
  SetTargetToWhoeverIsHolding             //
26
 
  tmpargument = 1                         //
27
 
  SendMessageNear                         //
28
 
IfNotPutAway                            // Say oops, that's cursed
29
 
  SetTargetToWhoeverIsHolding             //
30
 
  tmpargument = 3                         //
31
 
  SendMessageNear                         //
32
 
IfDropped                               // Make it lie on floor
33
 
  KeepAction                              //
34
 
IfHitGround                             // Make a sound
35
 
  tmpargument = 1                         //
36
 
  tmpdistance = rand & 2047 + 7000        //
37
 
  PlaySound                               //
38
 
  DisaffirmCharacter                      // Stop thrown attack
39
 
IfGrabbed                               // Tell them what they've won...
40
 
  SetTargetToWhoeverIsHolding             //
41
 
  IfTargetIsAPlayer                       //
42
 
    tmpargument = 0                       //
43
 
    SendMessageNear                       //
44
 
End                                     // All done
 
1
// ZZ> This function makes an item fall to the floor when spawned
 
2
IfSpawned                               //
 
3
  tmpargument = ACTIONJB                  //
 
4
  DoAction                                //
 
5
  KeepAction                              //
 
6
  MakeCrushValid
 
7
  MakeAmmoKnown
 
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
IfThrown                                // Make it attack
 
21
  tmpargument = 2
 
22
  tmpdistance = 1
 
23
  SpawnAttachedParticle
 
24
IfNotDropped                            // Say oops, that's cursed
 
25
  SetTargetToWhoeverIsHolding             //
 
26
  tmpargument = 1                         //
 
27
  SendMessageNear                         //
 
28
IfNotPutAway                            // Say oops, that's cursed
 
29
  SetTargetToWhoeverIsHolding             //
 
30
  tmpargument = 3                         //
 
31
  SendMessageNear                         //
 
32
IfDropped                               // Make it lie on floor
 
33
  KeepAction                              //
 
34
IfHitGround                             // Make a sound
 
35
  tmpargument = 1                         //
 
36
  tmpdistance = rand & 2047 + 7000        //
 
37
  PlaySound                               //
 
38
  DisaffirmCharacter                      // Stop thrown attack
 
39
IfGrabbed                               // Tell them what they've won...
 
40
  SetTargetToWhoeverIsHolding             //
 
41
  IfTargetIsAPlayer                       //
 
42
    tmpargument = 0                       //
 
43
    SendMessageNear                       //
 
44
End                                     // All done