Download |
Download |
Cheeseh |
Oct 28 2018, 09:55 PM
Post
#1
|
Admin Group: Admin Posts: 3,055 Joined: 11-September 03 From: uk Member No.: 1 |
RCBot for Svencoop 5 (Angelscript)
This version of RCBot has been created from scratch with some code converted from RCBot1 and inspired by RCBot2 code. It uses the built in plugin system "AngelScript" that comes with Svencoop 5. instructions and download here: https://github.com/rcbotCheeseh/RCBotSven5 Usage just download all files (Download/Clone as zip) extract into the BotManager directory in scripts/plugins. (overwrite) The files will overwrite the current "Bot" scripts as it was based on the sample. Features Bots can run around / shoot enemies, pick up ammo/health/weapons/armor, use health/HEV chargers, use teleports, take cover, press buttons (at objective points -- not tested), shoot breakables (not tested). (i.e. its a work in progress). Bots CAN'T use ladders yet, or secondary fire, or use grapple etc yet or other fancy stuff. Commands: CODE addbot Adds a new bot waypoint_off Display waypoints off waypoint_on Displays waypoints on waypoint_add Adds a new waypoint waypoint_delete Adds a new waypoint waypoint_load Loads waypoints waypoint_save Saves waypoints pathwaypoint_create1 Adds a new path from pathwaypoint_create2 Adds a new path to pathwaypoint_remove1 pathwaypoint_remove2 waypoint_clear waypoint_info (print waypoint types on current waypoint) waypoint_givetype give waypoint type waypoint_removetype remove waypoint type waypoint_toggletype waypoint_convert_type (from) (to). Convert waypoint types debug debug messages toggle godmode god mode noclip noclip notarget (no target mode) killbots kills all bots <to add - notouch (needed for waypointing)> all commands accessible via command "as_command rcbot.<command>" e.g. "as_command rcbot.addbot" DEBUGGING if you run into trouble (usually becuase of a nightly build) find the problem by first using the commands CODE developer 1 as_log_level 2 as_reloadplugins note down any errors and report them I'm needing waypoints redone These are now "rcwa" files in a different format. I made a program to convert rcbot1 waypoints to these. Downloadable here: RCBotWPTConverter.zip ( 502.51k ) Number of downloads: 4332 This post has been edited by Cheeseh: Nov 7 2018, 06:50 AM |
Solokiller |
Nov 16 2018, 09:16 PM
Post
#2
|
Member Group: Members Posts: 23 Joined: 17-December 16 Member No.: 2,482 |
Yeah the problem is probably that the entity that the handle in BotVisibles.as points to is removed between frames. Use an EHANDLE and it should be good, just make sure your code accounts for handle invalidation correctly.
If passing null is acceptable for your use case then it should work once it's an EHANDLE. If you're wondering why the entity can be removed, it's because the type is registered with reference counting disabled so Angelscript handles to it don't keep it alive. |
Lo-Fi Version | Time is now: 10th April 2024 - 09:19 PM |