Slam/throw bloodbane

grabbing enemies jumping
grabbing running
grabbing counter attack

I need some help to make these commands using slam / throw bloodbane
see image below

[attachment deleted by admin]
 
I use an attack with a follow up animation that uses Bloodbane's slamstart2 script. I don't know how to make it so that an air grab only grabs airborne enemies or when you do a running slam, you can only grab a grounded enemy though.  I think Maggas World Heroes mod has stuff like that.
 
Joshiro said:
I don't know how to make it so that an air grab only grabs airborne enemies or when you do a running slam, you can only grab a grounded enemy though.  I think Maggas World Heroes mod has stuff like that.

I already made something like that in Crime Buster v2.5, all air grabs can only grab airborne enemies and running slam can only grab ground enemies. Each grab has special function designed for that grab

I tried see ralf and athena .txt but I don't understand. I need to be guided

Have you read jonsilva's guide?
 
If you can't understand, copy the enemy and player folders from Bloodbane's Crime Buster v2.5 mod and paste them to your own project. Like you, I didn't understand scripts at all, but copying players and enemies folders to my projects helped me learn how to do animation script. It doesn't have to be all of them but I picked some of the enemies to help me learn how to do slams. Look at this here for example.

3_31_16_12_31_30_AM.png


First off, load the Crime Buster players and enemies in your models.txt. Try with any player and any enemy in the stage for slam/throw practice. Look at the codes of players and enemies of how they are performed. After trying out, try out with your own player characters and practice slam/throw with Crime Buster enemies. That's how I learned to do animation script.

Download the script guide here.
http://www.chronocrash.com/forum/index.php?action=tpmod;dl=item8
 
I already made something like that in Crime Buster v2.5, all air grabs can only grab airborne enemies and running slam can only grab ground enemies. Each grab has special function designed for that grab

I could be wrong but I thought that you have it setup based on the name of enemy and not if an enemy is in a jumping state.
 
No, you got it wrong. I did both checks

Code:
void grabcheckA(void Ani1, void Ani2, void Ani3)
{ // Hero's airgrab checker
// This script prevents hero from grabbing ground enemies, bikers, jetpacks, special enemies and non-enemy entities
//  Ani1 = Grab animation to play
//  Ani2 = Animation to play if hit enemy are bikers or jetpacks
//  Ani3 = Animation to play if hit opponent are not airborne enemies

    void self = getlocalvar("self");
    void target = getentityproperty(self, "opponent");

    if(target!=NULL()){

      if(getentityproperty(target, "a") > 0){
        int Check = checkgrab(target);

        if(Check == 0)
        { 
          changeentityproperty(self, "animation", openborconstant(Ani2));
        } else if(Check == 1){
          setlocalvar("Target" + self, target);
          changeentityproperty(self, "animation", openborconstant(Ani1));
        }
      } else {
        changeentityproperty(self, "animation", openborconstant(Ani3));
      }

    }
}

void grabcheckG(void Ani1, void Ani2, void Ani3)
{ // Hero's groundgrab checker
// This script prevents hero from grabbing airborne enemies, bikers, jetpacks, special enemies and non-enemy entities
//  Ani1 = Grab animation to play
//  Ani2 = Animation to play if hit enemy are bikers or jetpacks
//  Ani3 = Animation to play if hit opponent are not ground enemies

    void self = getlocalvar("self");
    void target = getentityproperty(self, "opponent");

    if(target!=NULL()){

      if(getentityproperty(target, "a") == 0){
        int Check = checkgrab(target);

        if(Check == 0)
        { 
          changeentityproperty(self, "animation", openborconstant(Ani2));
        } else if(Check == 1){
          setlocalvar("Target" + self, target);
          changeentityproperty(self, "animation", openborconstant(Ani1));
        }
      } else {
        changeentityproperty(self, "animation", openborconstant(Ani3));
      }

    }
}

These two functions are what you need to set prior to grab. grabcheckA will check if enemy is suitable for air grab while grabcheckG for ground grab. Both functions run checkgrab function which checks enemy's grabbable status by his/her name
Checkgrab function is obsolete though as we now have antigrab command whose value can be acquired via script to do the former

So you still need to run either grabcheck functions
 
Bloodbane said:
Joshiro said:
I don't know how to make it so that an air grab only grabs airborne enemies or when you do a running slam, you can only grab a grounded enemy though.  I think Maggas World Heroes mod has stuff like that.

I already made something like that in Crime Buster v2.5, all air grabs can only grab airborne enemies and running slam can only grab ground enemies. Each grab has special function designed for that grab

I tried see ralf and athena .txt but I don't understand. I need to be guided

Have you read jonsilva's guide?

Where is jonsilva's guide to download ??
 
Hmmm... I forget if it has been uploaded here or not but here's a link from Atlas forum:

http://cavernofcreativity.com/Atlas/Thread-Crime-Buster-Slam-Tutorial-for-Beginners
 
These two functions are what you need to set prior to grab. grabcheckA will check if enemy is suitable for air grab while grabcheckG for ground grab. Both functions run checkgrab function which checks enemy's grabbable status by his/her name
Checkgrab function is obsolete though as we now have antigrab command whose value can be acquired via script to do the former

So you still need to run either grabcheck functions

Nice. This was what I was looking for. So should I change "checkgrab(target)" into "antigrab(target)"?
 
No, don't do that. checkgrab is a function I created myself and it's not related to antigrab and grabforce at all (the latters weren't available when I made the former)

What you need is the updated functions like these:

Code:
void grabcheckA(void Ani1, void Ani2, void Ani3)
{ // Hero's airgrab checker
// This script prevents hero from grabbing ground or ungrabbale enemies and non-enemy entities
//  Ani1 = Grab animation to play
//  Ani2 = Animation to play if hit enemy are ungrabbable enemies
//  Ani3 = Animation to play if hit opponent are not airborne enemies
    void self = getlocalvar("self");
    void target = getentityproperty(self, "opponent");

    if(target){
      if(getentityproperty(target, "a") > 0){
        int Check = getentityproperty(self, "antigrab");

        if(Check < 10){ 
          setlocalvar("Target" + self, target);
          changeentityproperty(self, "animation", openborconstant(Ani1));
        } else {
          changeentityproperty(self, "animation", openborconstant(Ani2));
        }
      } else {
        changeentityproperty(self, "animation", openborconstant(Ani3));
      }

    }
}

void grabcheckG(void Ani1, void Ani2, void Ani3)
{ // Hero's groundgrab checker
// This script prevents hero from grabbing airborne and ungrabbale enemies and non-enemy entities
//  Ani1 = Grab animation to play
//  Ani2 = Animation to play if hit enemy are ungrabbable enemies
//  Ani3 = Animation to play if hit opponent are not ground enemies
    void self = getlocalvar("self");
    void target = getentityproperty(self, "opponent");

    if(target){
      if(getentityproperty(target, "a") == 0){
        int Check = getentityproperty(self, "antigrab");

        if(Check < 10){ 
          setlocalvar("Target" + self, target);
          changeentityproperty(self, "animation", openborconstant(Ani1));
        } else {
          changeentityproperty(self, "animation", openborconstant(Ani2));
        }
      } else {
        changeentityproperty(self, "animation", openborconstant(Ani3));
      }

    }
}

These updated functions won't grab enemies whose antigrab value is 10 or more
 
Back
Top Bottom