2025-08-29 10:08 CEST

spring: develop 88c59ef0 Diff ] Back to Repository ]
Author Committer Branch Timestamp Parent
tvo tvo develop 2007-06-26 21:45:18 develop 92a1fb3a
Changeset Patch by imbaczek, closes mantis # 550
 
 all files:
 - removed trailing whitespace
 
 GameHelper.cpp:
 - fixed raytrace code (apparently GUI raytrace made it into targetting raytrace)
 
 LuaWeaponDefs.cpp
 UnitLoader.cpp
 - added tags: targetBorder, cylinderTargetting, minIntensity
 
 MobileCAI.{cpp,h}
 - added lastCloseInTry (in ticks)
 - made units aware of targetBorder
 
 BeamLaser.cpp
 Weapon.h
 - added minIntensity tag
 - made cylinderTargetting and targetBorder to increase ray length
 
 Weapon.cpp
 Weapon.h
 WeaponDefHandler.cpp
 WeaponDefHandler.h
 - TryTarget made to respect targetBorder and cylinderTargetting
 - added tags:
         * float targetBorder - if nonzero, targetting units will TryTarget at
           the edge of collision sphere (radius*tag_value, [-1;1]) instead of
           its centre
         * float cylinderTargetting - if greater than 0, range will be checked
           in a cylinder (half height=unitradius*cylinderTargetting) instead of
           a sphere
         * float minIntensity - for beamlasers - always hit with some minimum
           intensity (a damage coeffcient normally dependent on distance). do
           not confuse with intensity tag, it's completely unrelated.
 - if weaponType==Melee, then defaults for targetBorder and cylinderTargetting
   are 1 instead of 0.
 
 MeleeWeapon.cpp
 - added impulseDir



git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@3861 37977431-3df6-0310-b722-df95706aa16b
mod - rts/Game/GameHelper.cpp Diff ] File ]
mod - rts/Lua/LuaWeaponDefs.cpp Diff ] File ]
mod - rts/Sim/Units/CommandAI/MobileCAI.cpp Diff ] File ]
mod - rts/Sim/Units/CommandAI/MobileCAI.h Diff ] File ]
mod - rts/Sim/Units/UnitLoader.cpp Diff ] File ]
mod - rts/Sim/Weapons/BeamLaser.cpp Diff ] File ]
mod - rts/Sim/Weapons/MeleeWeapon.cpp Diff ] File ]
mod - rts/Sim/Weapons/Weapon.cpp Diff ] File ]
mod - rts/Sim/Weapons/Weapon.h Diff ] File ]
mod - rts/Sim/Weapons/WeaponDefHandler.cpp Diff ] File ]
mod - rts/Sim/Weapons/WeaponDefHandler.h Diff ] File ]