Hi,
I'm starting to look at the editor with the aim of making a mod. I've been messing around with it and I'm beginning to see how it's put together -- impressive! It was somewhat of an epiphany when I realised that all the character models are objects comprising a pile of pngs and some lovingly-crafted animation. I can see why it's taken so long to make!
When I feel that I understand well I'll contribute to the wiki, but in the meantime I have a few questions that can hopefully be answered by Ville or other experienced modders:
[list][*]First, what are 'paths' and what are they for? I assume that they're a way to make bots move around a map, but I can't find any reference to them in the scripting pages, nor do I understand why are all the path nodes connected to each other. I would expect there to be an action which says 'move along nodes 1,3,4,5' or something...[/*]
[*]Second, is it possible to script by typing instead? I noticed that in some game datafile somewhere (can't remember what it was, perhaps one of the things describing bots) actions are written out in text eg 'reduceHealthSweep(X, Y)', so there must be a parser somewhere in the engine. Although point-and-click is fine when I don't really know what I'm doing, I imagine that it would be much faster to just type once I've learned what the various conditions and actions do.[/*]
[*]Finally, I'm trying to make an automated 'sentry' and I'm not sure how to go about it. I'd like the player to be able to move it, and for it to automatically shoot enemies when they come in range. First I tried taking the 'trap' approach, firing a projectile when the player is on a polygon, but I can't see how to make it trigger on enemies or how to actually direct the projectile towards the enemy (I need to know the angle of the enemy relative to the projectile source and I can't see how to obtain this...). I also tried making a bot with a projectile weapon which can't move. This seems like a better solution but the player can't move the bot except by bumping it along. I wondered about making an invisible wall around the bot which the player could drag (thus moving the bot), but this seems non-ideal as when you mouse over the bot the game would still treat it as a bot and not as an object. How would more experienced modders approach this problem? Is it even possible with the current scripting system? Any thoughts would be appreciated...[/*] [/list:u]
|