Commit graph

7571 commits

Author SHA1 Message Date
cybermind
2fd9864207 [+] Enhanced CclCreateMissile by addind 7th bool parameter, to make all position calculations relative to map coordinates. 2013-08-24 21:16:44 +06:00
cybermind
9481b65058 [*] Position spells doesn't use information about UnitUnderCursor 2013-08-24 21:06:41 +06:00
cybermind
e185e25aa2 [+] Added unittype variables TargetPosX and TargetPosY, to hold information about unit's current goal position 2013-08-24 21:04:41 +06:00
cybermind
bc32d48359 [+] Allow to get info about spell autocast in animation
[*] CUnitType::Priority is now the main property in AI threaat calculation.
[-] Fixed DrawInformations in replay mode.
2013-08-24 12:44:29 +06:00
cybermind
4734d1fd8e [-] Fixed bug when unit trying to hide himself with a spell unhides itself again. 2013-08-20 23:22:56 +06:00
cybermind
fe6cb121c7 [+] Enhanced transporters:
-ability to specify unit "size" in transporter using BoardSize unit property.
-ability to specify button level for transporting buttons using ButtonLevelForTransporter unit property.
-fixed bug: unit is deselected when it's trying to unload his passengers.
2013-08-20 22:51:48 +06:00
cybermind
a1e8b56830 [-] Fixed crash in replay mode when showing unit without graphics (revealer) 2013-08-20 19:18:25 +06:00
cybermind
3b95b6ad2d [+] Ability to build several units in row (useful for walls). Just hold mouse left button and SHIFT/ALT and move your mouse to build more units of the same type 2013-08-20 19:16:53 +06:00
cybermind
ea187aff06 [+] Ability to specify setup file for map(useful for scenario maps). Just change Map.Info.Filename while in editor. 2013-08-20 19:14:22 +06:00
cybermind
b4586744db [+] Added CclGetUnitsAroundUnit function to get all units around specified unit into table 2013-08-16 00:34:32 +06:00
cybermind
aaf2bc1559 [*] Enhancements in editor:
-tile mode labels now colored in reverse color if selected.
-fit unit icons in UI.ButtonPanel.Buttons cells.
2013-08-15 19:17:46 +06:00
cybermind
e39a925942 [+] Implemented spell cooldown timer ability, like in modern RTS (WC3). To use it, define "cooldown" property in DefineSpell with integer argument. 2013-08-15 16:08:01 +06:00
cybermind
7d944e5b1d [*] Invincible units now have the lowest priority for AI 2013-08-14 19:41:47 +06:00
cybermind
9521969aeb [+] Added MissileType::ParabolCoefficient, to control curve coefficient in MissileParabolic
[*] All calculations in MissileParabolic now use doubles instead of ints
2013-08-14 19:23:54 +06:00
cybermind
e988ff95b6 [*] More strings to translate 2013-08-14 12:47:37 +06:00
cybermind
f0660bbc62 [+] Ability to use conditions in NumberDesc using NumIf cxommand. Syntax: NumIf(<cond>, <truepart>, <falsepart>) 2013-08-11 18:03:03 +06:00
cybermind
e7490931c9 [-] Fixed assertion fail in unit_find.cpp 2013-08-11 15:57:51 +06:00
cybermind
74822f0214 [*] Don't notify player for insufficient resources in spell cast 2013-08-11 15:56:29 +06:00
cybermind
55cc1ab4ee [+] Ability to parse player number in animations as variable. Place variable expression in brackets. Example: p_(v_Player.Value).TotalNumUnits 2013-08-11 15:55:13 +06:00
cybermind
784fc9cddd [+] Ability to show player name for in StringDesc. Use PlayerName(num), where num is NumberDesc containing player's number 2013-08-11 14:16:45 +06:00
cybermind
b78e366639 [-] Fixed order saving for autocast 2013-08-09 19:21:46 +06:00
cybermind
46dc4049b6 [*] Fixed dependency printing to show only first option in DefineDependency 2013-08-09 19:13:55 +06:00
cybermind
3bed296795 [+] Enhanced Spell_AreaAdjustVital by addind "use-mana" boolean to control mana drain from spell usage. 2013-08-09 18:53:18 +06:00
cybermind
0de6048865 [-] Fixed typo in map preview calculation 2013-08-08 12:32:06 +06:00
cybermind
1b5bb6b97d [+] Ability to enable OpenGL texture compression from Lua using SetUseTextureCompression function 2013-08-08 11:41:31 +06:00
cybermind
9a975a6304 [-] Fixed compilation 2013-08-08 11:07:26 +06:00
joris
15e7a02002 [AStyle] 2013-08-06 15:33:06 +02:00
joris
f14450045f Make CUDPSocket_Impl compliant with AStyle // AStyle format wrongly (Socket) -1, but correctly Socket(-1)). 2013-08-06 15:20:00 +02:00
joris
7152fd4302 [AStyle] 2013-08-06 15:08:51 +02:00
joris
db1fb7951c Fix warning with gcc. 2013-08-06 14:56:45 +02:00
cybermind
9b56c29197 [*] Spell auto-cast feature now saves current order to continue it in future. 2013-08-04 17:52:03 +06:00
cybermind
0ec0b49c93 [+] Added showing of food usage for popup windows. 2013-08-03 18:45:24 +06:00
cybermind
06d0641ddd [+] Implemented old behavour for storing user data (logs, saves etc) to path where Stratagus is installed. To use this feature, enable ENABLE_USEGAMEDIR option in CMake 2013-08-03 18:43:17 +06:00
cybermind
7e9a32af91 [-] Another fix for map preview, which added player spots 2013-08-03 16:50:57 +06:00
cybermind
3e3ae32ca6 [-] Fixed map preview creating in OpenGL mode 2013-08-03 15:49:37 +06:00
cybermind
ad63ef7486 [+] Enhanced area-adjust-vitals spell by adding Range field
[*] ShieldPoints now a vital, so it may be modified through "adjust-vitals"/"area-adjust-vitals" spells
2013-08-03 15:16:20 +06:00
cybermind
31481cda99 [*] ShieldPiercing is now a variable instead of boolflag, so it may be modified through lua 2013-07-31 20:10:40 +06:00
cybermind
576796a15f [+] Added ShieldPermeability unit variable, which controls damage percent absorbed by shield. 0 - shield fully absorbs damage, 100 - shield unable to protect from damage 2013-07-31 19:55:25 +06:00
cybermind
4876406ff2 [-] Removed revision 8670, which causes periodic "network out of sync", because some player was able to randomly execute commands which aren't executed by other players. 2013-07-29 22:20:43 +06:00
joris
8115d4ae84 Use floorf instead of floor. 2013-07-25 17:42:05 +02:00
joris
ab48443be5 Fix typo 2013-07-25 17:41:05 +02:00
joris
cab3467df1 Fix compilation for mingw 2013-07-25 15:00:59 +02:00
joris
195cdbea03 Fix typo thanks to codespell. 2013-07-25 14:31:34 +02:00
cybermind
ef2aaa419e [-] Fixed network desync when trying to select units with rectangle and move them 2013-07-20 21:24:18 +06:00
cybermind
637de00822 [-] Fixed bug which didn't allow client to join into game
(note: I'm not highly knowledgable in network protocol programming, but looks like stratagus tries to connect on localhost instrad of address specified in join window)
2013-07-20 16:46:55 +06:00
Pali Rohár
752c9f77b2 winapi attachconsole.cpp: Use macro _WIN32_WINNT_WIN2K instead hardcoded constant 0x0500 2013-07-12 14:15:17 +02:00
Pali Rohár
278ec0e474 Fix compile error: include math.h for function floor()
src/video/sdl.cpp:827:91: error: ‘floor’ was not declared in this scope
2013-07-12 14:10:56 +02:00
joris
bb21f79cba Use min/max/clamp. 2013-07-12 09:27:41 +02:00
joris
e73524d87d Fix gcc warnings about mixing && || 2013-07-05 10:59:22 +02:00
joris
486c887c62 use std::min, std::max 2013-07-02 11:57:07 +02:00