翻译就不如直接看Video: http://www.youtube.com/watch?v=JH0JUJwOmOM (需要翻)

这个想法不错,如果以后能加入svn1.13就好了 :mrgreen:


原文:(Sorry,E文差,自己用翻译软件吧) :P 

Features for gamers:

- Cover display shows now the enemy sight range, with sight adjustment based on how good your cover is!

Every type of the following sight range reductions stack!
- Camouflage is a flat but context sensitive change to sight range. the more camo the less sight range for the enemy. Based on your characters camouflage, the terrain and the characters stance (standing make you camo useless)
(in video: you see the enemy seeing our character less good on grass)
- Stance is important too, prone will make you less visible, standing more visible. enemy colors show how good you can be seen at each stance (green = you can't be seen even standing, yellow = you can crouch, orange = you need to be prone, red = got ya).
- Stealth does the same as camo but is stance independant and effective only when it's dark (but still helps to a very small amount at day).
- Movement will now give you a flat penalty, the more you move the more visible you are (moving near enemy sight range limits is very dangerous). Movement speed does currently not influence this, running 10 meters or crawling 10 meters is a like.

- The "F" key will show your cover on the spot you are pointing next to the brightness. the cover value is the percentage of sight distance that's removed because of your properties (stealth, stance, camo, movement).
- The vegetation coverage is based on the density and fill of the vegetation. Tree's and dense bushes cover good whereas transparent small bushes will only help at long distances.

- You don't get a bonus beeing behind vegatation if you have camo. I don't think this would make sense to give you camo for stuff you are behind but not for stuff that is behind you. This is more a change than a feature. But now trees hide you much more anyway (you don't require the old stuff).

Features for coders:
- Modular build (every type = one function) and single point functions (get all changes in one) allows you to use, modify and add to the new cover system directly and easily.
- Made everything adhere to ja coding standards as I have seen them in the code.
- Deleted unnecessary code, and every code that repeated (manually copied several times) was put in either a function or loops. (not sure if my changes add or delete more code because of this)
- Written some comments for my stuff (in doxygen style which isn't supported in VSE08 it seems).

Features for modders:
- Stealth influences the sight range of the enemy at night
- All ground values (stealth etc) should be able to have a negative value for my stuff (don't know if it's allowed elsewere, may crash your game ;) ), lamps will make you more visible at night, so make the stealth value of a tactical lamp -30% (for example) (yes bad, a lamp lets you see where you are going, meaning you should make less noise, but noise is dependant on your stealth too.. oh well)
- Sorry, no snow camouflage support yet!

Negative stuff / Important Todos:
- Destroyed the original cover display (sorry were to lazy to make my own, have just overwritten it)
- Not localized right now ( and destroyed F-key localization already )
- Some variables I took over from existing code are misnamed (e.g. iCover should be named iThreat or something) (how do you rename variables in VS Express 2008?)
- Some of my comments are misplaces or not complete (but still more comments than the original code)
- Those comments are in doxygen style, no idea if there is a plugin for vse08
- The hit algorithm will not check if you can be seen at prone height but not on crouch height (belly of a plane, which is on tires). It will show as if you can go prone but not crouch. (Small fix but I'm too lazy right now, because this one will be much more easy to fix once I get the variable renaming going in VSE08)
- Had to write some of my own basic functions to query simple stuff like "GetStealth" that gets the total amount of stealth including the trait. And all the camo stuff of course. Problem is that it's only used by my functions which could brake is the behaviour changes somewhere else.
- Check if negative values work
- Check the behaviour at night (it must be off balanced as cover is way too good)
- Check the general balance (corn fields on wildfire map, maybe the cover is way too much there, same goes for tree's on those maps)
- Externalize basic algorithm parameters (so wildfire has lower cover values then standard, because wildfire has already so much natural cover everywhere)
- Rewrite algorithms to be easier to understand and mod

Future features I like to see but probably will never be implemented (by me or someone else):

document everything so simple gamers can understand their cover value
- either through additions of display information (tell them how much cover what gives..)
- either by giving them good guides of the algorithm used
- last thing probably will require to simplify the current algorithmes used, otherwise only people who can code will understand the stuff (then we wouldn't have to write guides in the first place!)

add an externalized texture id to camouflage associative xml document.
- that way modders could add snow textures for their mod!! (currently not possible since it's hard coded what texture id is what type of texture and each type of texture is associated to one camo type)
- and we could finally make brown ground only help desert camo and green ground only jungle/wood camo

make a second interrupt just before the enemy would see you (tile says red, but aware is false)
- so trying to stay in cover is much more rewarding, as you can stay in cover. (if you have a green tile next to you, you should be able to jump on it)
- that would be awsome, but that would require some heavy AI work I guess
- ( the main idea i have here is that I should be able to go around a tree while the enemy runs near the tree but still out of range to see behind the tree )

let wisdom influence sight range.
- i've though about it but i don't know what it would do to enemy soldiers. meaning the balance could be totally off. for mercs however it could be easily understood. (<50 wisdom = sight reduction, >50 wisdom sight increase)

make the stuff you are wearing influence the ability of the enemy to see you.
- what? isn't that camo? no this time I dont mean colors, but I mean volumn.
- backpacks should make you more visible ALOT
- small backpack still makes you more visible.
- ammo and stuff is too small (and will prob. be hidden inside pockets which have camo)
- but new pockets could make it worse only a bit, like on your legs.
- probably we would make this dependant on camo of the stuff you are wearing too..
- the last thing would work good if modders would be able to use negative camo/stealth values

GetSightReductionCamouflageInFrontOfStructure and GetSightReductionCamouflageBehindOfStructure
- real 3D feeling, camo is worse currently when you are standing.
- but if you are standing in front of a building (as seen from the enemy) and you have urban camo.. that should give you the same camo effect you already get
- same goes for trees, which could also be in front of you (and still give you a bonus)


声明: 除非注明,ZWWoOoOo文章均为原创,转载请以链接形式标明本文地址
本文地址: http://zww.me/archives/21402

0 comment

Leave a Reply