I was thinking of what other weapon systems i could make like the deployable mortar in DC 0.7 today. Well i came up with this Browning M2 .50 cal kit deployable unit!! It works very well for spawn camping!!
I was also thinking of how to make a automated sentry gun ... & figured i could add a ai only forced spawn to a stationary gun w/ a "SeatObject" that would hide the soldier body. I will try this tomorrow!!!
which, say on a humvee, causes the exit location to be inside the vehicle ... preventing the soldier from exiting. But for some reason after pressing "E" to exit the vehicle a few times, you will eventually exit the vehicle!! Its buggy!!
Also, the only way i can see it possible to not have the soldiers body visible, is to put him inside something or drop the seatobject way below the ground. Anybody got any ideas??
Great idea. How about eliminating the seat animation altogether so there is no visible soldier (ala the Hanomag driver - only an entry is required), and make the gun's AI unit plugin equipmentType 11 which is Landingcraft Fixed. Then a bot will only exit the weapon if it comes in contact with a Landing Zone.
Ok Wow POTAmatt!!! That worked perfectly! Only one problem left to fix. How can i force a bot to spawn immediatly on the gun / pco? Currently im using this...
Hey, that is sweeeet! There's always a way to get the bots to do our evil bidding. The video looks great. I gotta make me one of those. I'm not certain i understand your question though, but if i did, you've already got it as is. ObjectTemplate.setAIEnterOnSpawn 1 means the bot will spawn and enter the vehicle only if the seat is not already taken. If it's already taken, he won't spawn there. A value of 0 means he'll spawn there at that point, but will have not entered the seat. He can then enter it or split. That's dangerous because now you've got a mobile spawn point and everybody will start spawning in standing next to the weapon. Same goes for ObjectTemplate.setEnterOnSpawn 0, but that's for human players. I hope that answers it for you. If not let me know. Matt
Well what happens is. When i deploy the bot-omated sentry gun, it takes about 5-10secs for a bot to spawn on it. Therefore making it kinda useless for that initial time. Also, i remember having problems with the bots not spawning on it when the action shifted to another part of the map.
Sounds like good news in that the spawner works. Unfortunetely you can't predict when someone is gonna get killed and when they're gonna use that spawnpoint. Why not just heat it up so any bot will seek it out and enter it. Also, do you have the bots deploying them? If not, post your AI code for both the deployable and the actual weapon and we'll get them doing so. It's just a matter of tweaking their AI object and weapon templates.
Ok here's my AI codes for the gun PCO. Oh and uh i didn't add any AI for the handfirearm, cause i figured the bots would just be dropping sentry guns all over the map. I don't know if it would be possible for them to deploy the gun in a usuable way.
I tried to heat up the PCO for the AI and make the AI use it better. Im not sure exactly what these settings do tho "aiTemplate.degeneration" & "aiTemplate.allowedTimeDiff".
Having bots use the deployables are simple enough. You can limit their range and effectiveness or have them throwing weapons all over the place. It's just a matter of tweaking the plugins. I use it all the time for mortars and such and can be a lot of fun. What you've got so far looks good, but their are a few things to point out. There are many with the belief that aiTemplatePlugIn.setStrategicStrength has a max value of 9. They may be right. I'm under the impression that it's greatest importance is for the bots to determine who to shoot first. That, for example, a bot with a bazooka will target a tank with a StrategicStrength of 9 before firing at a jeep with a StrategicStrength of 4. The aiTemplate.degeneration value tells the bots how long before they can forget that target and reassess. A plane's value is set low because there's no sense in bots staring at it after it's already flown out of range. AiTemplate.allowedTimeDiff is how often that vehicles information is refreshed. Soldiers are set to a low value of 0.5, so every half second his information is updated, so the lower the value, the more up to date he is concerning his surrounding targets. Probably the 2 biggest things you can do to get them in the weapon is to increase the aiTemplate.basicTemp (i see you had that set to 120 temporarily, so that should help) and set it's relative strength against infantry, lightarmor, etc. in the weapons template. So if this weapon is more useful against infantry as compared to anything else on the map, make it's value higher. Start with something like this and then tweak to your liking:
If you really want to get them in the weapon on a specific strategy, add this to that particular strategy or all strategies:
aiStrategy.setTreeModifier TTNFriendGroundFixed 2.0
That modifier will double the value of the temperature of anything flagged with 'aiTemplate.addType ITFixed'. A value of 3 will triple it, etc. You'll never get the bots out of the weapon at that point. LOL.
Give it a shot and let me know how it works out. Matt