home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- int Initialize(string type)
- {
- global int gGravity = 0;
- global int gArmorValue = 20;
- global int gStartSound = 37;
- Reset("dummy");
- return 0;
- }
-
- int Reset(string dummy)
- {
-
- wakeupTime = -1.0;
- SetCollidableProperties(thisObject,gGravity,0);
- SetScale(thisObject,2.0);
- SetStyle(thisObject,2);
- return 0;
- }
-
- int startsound(string soundname)
- {
- gStartSound = GetSoundIndex(soundname);
-
- }
-
- int armorvalue(string dummy)
- {
- gArmorValue = Str2Int(dummy);
- }
-
- int Drop(string dummy)
- {
- SetScale(thisObject,2.0);
- }
-
- int gravity(string flag)
- {
- int value;
- value = Str2Int(flag);
-
- gGravity = value;
- SetCollidableProperties(thisObject,gGravity,0);
- }
-
- int Colliders(string dummy)
- {
-
- map::iterator ix;
- map objInList;
-
- if (IsAuthoritative(thisObject) == 0)
- return 0;
-
- objInList = Collisions(thisObject,0,0,0);
-
- for (ix = begin(objInList) ;ix != end(objInList); ++ix)
- {
- if (AddObjectTo(first(dereference(ix)),thisObject,gArmorValue) != 0)
- {
- PlaySound(thisObject,gStartSound);
- Remove(thisObject);
- break;
- }
- }
-
- return 0;
- }
-
-
- int Impact(int brain,int value,int type)
- {
-
- int temp;
- temp = value;
- value = temp /2;
- ReturnValue(brain,value);
- return 0;
- }
-
- int TimedEvent(int input)
- {
- return 0;
- }
-
-