I enjoy recreating scenes and battles in blockland using bots. But I always run into two problems that keep me from making my concepts a reality. Firstly the best guns, namely gravitycats weapons, do not reload automatically. Therefore, when a bot's clip runs out, that's it. It won't be able to shoot anymore. I was wondering if there was a line of code I could implement that could give his weapons that basic,universal, functionality. You guys are geniuses, so I figured I could ask you for some help.
The second thing that ruins my build is a bots odd inability to stand in one spot and shoot. I thought of a way to fix this, but I'm not smart enough to figure it out. You guys remember the Ability Bot's released by The Resonte? In that pack was a bot labeled 'Still'. This bot did not move, and would shoot at you.
Anyway, I wanted bots to move to cover and shoot. I was planning on eventing a bot to go to a brick and have it's datablock changed to the still player-type so that it could just stand there and shoot. But I can't. Because it's not a player-type and doesn't come up in the 'changedatablock' list. Before you ask, yes, I HAVE tried the no-move playertype. It would work, but the bot's base code ruins it. If they see an enemy and notice that they can't move, they'll start spazzing out, ducking like forty-goin' north and losing their target a ga-jillion times in the process. It doesn't work.
However, the STILL playertype DOESN'T spaz out, and I don't know why. It will just stand there and try to kill you, not losing you or ducking at all. Like a normal person trying to snipe you from cover. My big idea was to create 'Still' versions of other player-types so that they could retain their attributes and work with that event I described up there. Only problem is that I don't know how. For instance, it's not as easy as taking the MasterCheifShooter_Playertype and just copying it and renaming it to MasterCheifShooter2. Things need to be changed up in the code to recognize the new string, and I don't know where those are.
Also, despite looking at the Still bot's code, for the life of me, I can't figure out why it doesn't WANT to move and doesn't spaz out when it can't. If I could identify the string of code doing this, I was hoping I could implement it into a modded player-type, like one of the awesome Shooter playertypes.
Would you guys care to help a brotha' out a little bit?