Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → The crossbow
The crossbow
2001-03-17, 10:12 AM #1
SetPOVShake('0.0 -.01 0.0', '1.0 0.0 0.0', .05, 10.0);
dummy = FireProjectile(player, projectile3, fireSound2, 18, '0.0207 0.0888 0.00', '0 0 0', 1.0, 0x20, autoAimFOV, autoAimFOV*2);
ChangeInv(player, 12, -1.0);
jkPlayPOVKey(player, povfireAnim, 1, 0x38);

powerBoost = GetInv(player, 63);
ChangeFireRate(player, fireWait/powerBoost);

Return;

This makes the crossbow fire a spray and for the other fire it just fires out bolts.
How do I change the charge up bit to firing another projectile at its own firing rate?
Code:
if(getThingFlags(source) & 0x8){
  do her}
elseif(getThingFlags(source) & 0x4){
  do other babe}
else{
  do a dude}
2001-03-17, 10:31 AM #2
all u need to change is the stuff in the symbols. to get it to fire your projectiles change the things that look like
Code:
template    projectile=+crossbowbolt            local
template    projectile2=+crossbowbolt2          local
template    projectile3=+crossbowbolt3          local

change them to
Code:
template    projectile=+yourprojectile            local
template    projectile2=+yourprojectile          local
template    projectile3=+yourprojectile          local


then to change the charge up rate u need to change the stuff under deactivated
change this
Code:
//thing u need to change mr. ruthervain
if(delayTime > 0.6)
      {
         if(GetInv(player, 12) > 1.0)
         {
            FireProjectile(player, projectile2, -1, 18, '0.0207 0.0888 0.00', '0 6 0', 0, 0, autoAimFOV, autoAimMaxDist);
            FireProjectile(player, projectile2, -1, 18, '0.0207 0.0888 0.00', '0 -6 0', 0, 0, autoAimFOV, autoAimMaxDist);
            ChangeInv(player, 12, -2.0);
         }
      }
      //other thing u need to change mr.       //ruthervain
      if(delayTime > 1.2)
      {
         if(GetInv(player, 12) > 1.0)
         {
            FireProjectile(player, projectile2, -1, 18, '0.0207 0.0888 0.00', '0 12 0', 0, 0, autoAimFOV, autoAimMaxDist);
            FireProjectile(player, projectile2, -1, 18, '0.0207 0.0888 0.00', '0 -12 0', 0, 0, autoAimFOV, autoAimMaxDist);
            ChangeInv(player, 12, -2.0);
         }
      }

to this
Code:
//thing u need to change mr. ruthervain
if(delayTime > 0.1)
      {
         if(GetInv(player, 12) > 1.0)
         {
            FireProjectile(player, projectile2, -1, 18, '0.0207 0.0888 0.00', '0 6 0', 0, 0, autoAimFOV, autoAimMaxDist);
            FireProjectile(player, projectile2, -1, 18, '0.0207 0.0888 0.00', '0 -6 0', 0, 0, autoAimFOV, autoAimMaxDist);
            ChangeInv(player, 12, -2.0);
         }
      }
      //other thing u need to change mr.       //ruthervain
      if(delayTime > 0.2)
      {
         if(GetInv(player, 12) > 1.0)
         {
            FireProjectile(player, projectile2, -1, 18, '0.0207 0.0888 0.00', '0 12 0', 0, 0, autoAimFOV, autoAimMaxDist);
            FireProjectile(player, projectile2, -1, 18, '0.0207 0.0888 0.00', '0 -12 0', 0, 0, autoAimFOV, autoAimMaxDist);
            ChangeInv(player, 12, -2.0);
         }
      }

just change those delay times to your speed
roses are red, violets are blue, I am schizophrenic, and I am too!
2001-03-19, 3:54 AM #3
why thank you!!
Code:
if(getThingFlags(source) & 0x8){
  do her}
elseif(getThingFlags(source) & 0x4){
  do other babe}
else{
  do a dude}
2001-03-19, 12:45 PM #4
sure when i ask people questions i like tem to answer and most people woulnd't answer this since it is to "simple"
roses are red, violets are blue, I am schizophrenic, and I am too!

↑ Up to the top!