home *** CD-ROM | disk | FTP | other *** search
- # Droids Cog Script
- #
- # D0_skyway.cog
- #
- # Goals for catapult
- #
- #
- #
- #
- #
- # [MT]
- #
- #
- # (C) 1997 LucasLearningLimited. All Rights Reserved
-
-
-
- symbols
- message startup
- message shutdown
-
- message user4
- message user6
- message pulse
-
- sound accomplish=00tAccomplish.WAV
-
- end
-
- ## Code Section
- code
-
- startup:
- //setpulse(1);
- player=getlocalplayerthing();
- radius=getthingradius(getlocalplayerthing());
- droidweight = GetThingMass(GetLocalPlayerThing()) / 2.2; // Get the player's weight
- //strength=dwgetarmstrength(getlocalplayerthing());
-
- if (dwCheckDroidCaps(131072)!=0) SetInv(player, 2, 1); //welder check in box2
- if (dwCheckDroidCaps(8)!=0)
- {
- if (radius > 0.074560)
- {
- SetInv(player, 1, 1); //biped in box1 and taller than radius ( number was: 0.09498)
- }
- else
- {
- SetInv(player, 1, 0);
- }
- }
- if (dwCheckDroidCaps(256)!=0) SetInv(player, 3, 1); //corrosion check in box3
- if (dwGetArmStrength() > 8) SetInv(player, 5, 1); //arm strength 135 or more
- //if (dwCheckDroidCaps(2048)!=0) SetInv(player, 5, 1); //grabbing ability, in box5 but should have fine arm man.
- if (droidweight < 150) SetInv(player, 6, 1); //less than 150kg
- //if (dwGetArmstrength() > 8) SetInv(player, 6, 1); //arm strength 130 or greater
-
-
- return;
-
- //user6:
- //fixed all corroded pipes
- //SetInv(player, 6, 1);
- //playsoundthing(accomplish, player, 1.0, -1, -1, 0x80);
- //return;
-
- user4:
- //got crystal
- SetInv(player, 4, 1);
- playsoundthing(accomplish, player, 1.0, -1, -1, 0x80);
- return;
-
- pulse:
- //to check height
- print("radius");
- printflex(radius);
- return;
-
-
- end
-
-
-
-
-