freesynd.git
7 years agoRework action for police : finished. master
benblan [Thu, 19 Feb 2015 06:44:41 +0000 (06:44 +0000)]
Rework action for police : finished.

7 years agoRework action for police
benblan [Sat, 24 Jan 2015 12:16:00 +0000 (12:16 +0000)]
Rework action for police

7 years agoFinished work on the persuaded peds.
benblan [Sun, 5 Oct 2014 07:53:26 +0000 (07:53 +0000)]
Finished work on the persuaded peds.

8 years agoChanged the way panic is activated.
benblan [Tue, 30 Sep 2014 19:24:47 +0000 (19:24 +0000)]
Changed the way panic is activated.

8 years agoPersuasion work
benblan [Mon, 22 Sep 2014 11:34:35 +0000 (11:34 +0000)]
Persuasion work
- Persuaded peds now follow owner
- Replaced unused state pa_smLeaveCar by new state pa_smHitByPersuadotron
- removed unused method PedInstance::createActQLeaveCar()
- Method PedInstance::insertHitAction() is now public
- Persuasion animation is now activated by set state to pa_smHitByPersuadotron
- PedInstance::handlePersuadedBy() is now called from new action PersuadedHitAction
- Removed unuesed method Weapon::doesMentalDmg()
- new class PersuadedBehaviourComponent (not finished)

8 years agoPersuasion work
benblan [Wed, 17 Sep 2014 04:33:57 +0000 (04:33 +0000)]
Persuasion work
* Refactored persuasion methods
* Mission::playersGroupId has been replaced by constant PedInstance::kPlayerGroupId
* Generaliztion of use of method PedInstance::isPersuaded()
* Renamed PedInstance::persuasion_points_ in PedInstance::totalPersuasionPoints_

8 years agoRework of scripted actions and reset
benblan [Mon, 15 Sep 2014 09:03:54 +0000 (09:03 +0000)]
Rework of scripted actions and reset

8 years agostart rework on persuasion.
benblan [Wed, 13 Aug 2014 11:42:54 +0000 (11:42 +0000)]
start rework on persuasion.

8 years agoPanic is active only when a ped gets his weapon out
benblan [Sat, 9 Aug 2014 17:22:16 +0000 (17:22 +0000)]
Panic is active only when a ped gets his weapon out

8 years agoAdded PanicComponent to manage panic for civilian
benblan [Fri, 8 Aug 2014 21:35:29 +0000 (21:35 +0000)]
Added PanicComponent to manage panic for civilian

8 years ago- Rework Behaviour and added BehaviourComponent
benblan [Mon, 28 Jul 2014 08:29:12 +0000 (08:29 +0000)]
- Rework Behaviour and added BehaviourComponent
- Code refactoring around ped initialization

8 years ago- Added ResetAction but no fully implemented
benblan [Fri, 25 Jul 2014 16:41:27 +0000 (16:41 +0000)]
- Added ResetAction but no fully implemented
- Peds with no scenarios now walk randomly

8 years agodebugId is now a regular field of mapobject and has been renamed in id
benblan [Tue, 22 Jul 2014 09:57:44 +0000 (09:57 +0000)]
debugId is now a regular field of mapobject and has been renamed in id

8 years ago- Added new EscapeAction for scenario type 7
benblan [Mon, 21 Jul 2014 07:52:27 +0000 (07:52 +0000)]
- Added new EscapeAction for scenario type 7
- Added new state pd_smEscaped in pedDescStateMasks enumeration
- ObjAssassinate now checks the PedInstance::hasEscaped() instead of checking if ped is outside borders
- Added IS_FLAG_SET and SET_FLAG macros to improve readability with flags
- modified MissionManager to handle vehicles and escape scenarios

8 years agoWorking on Civilian actions
benblan [Sat, 19 Jul 2014 07:16:52 +0000 (07:16 +0000)]
Working on Civilian actions
- Renamed PedType enumeration values
- Added WalkToDirectionAction class
- Added TriggerActionClass

8 years agoRefactoring of majorType, maintype and subType
benblan [Tue, 8 Jul 2014 08:03:14 +0000 (08:03 +0000)]
Refactoring of majorType, maintype and subType
- majorType is now MapObject::nature
- maintype has been dispatched in subclasses of MapObject and renamed in type
- subtype has been moved to Statics

8 years ago- Fixed mission statistics
benblan [Fri, 4 Jul 2014 15:13:17 +0000 (15:13 +0000)]
- Fixed mission statistics
- moved ShotClass::owner to Weapon and changed type to PedInstance to avoid constant cast

8 years ago- some refactoring around inRangeCPos
benblan [Fri, 4 Jul 2014 13:31:32 +0000 (13:31 +0000)]
- some refactoring around inRangeCPos
- renamed BehaviourEvent::kBehvEvtAgentHit to kBehvEvtHit
- Shot::getAllShootablesWithinRange() to Explosion and removed call from InstantImpactShot

8 years agoFlamer almost finished
benblan [Wed, 2 Jul 2014 21:05:46 +0000 (21:05 +0000)]
Flamer almost finished
- changed the way an agent change direction when shooting

8 years ago- fixed bug where walking and burning was not working
benblan [Mon, 30 Jun 2014 15:20:20 +0000 (15:20 +0000)]
- fixed bug where walking and burning was not working
- moved Agent::removeAllWeapons() to WeaponHolder
- rework addWeapon(), removeWeapon(), removeAllWeapons()
- Renamed WeaponHolder::removeWeapon() to removeWeaponAtIndex()
- Renamed WeaponHolder::removeWeaponInstance() to removeWeapon()

8 years agoFlamer : still buggy but animation is better
benblan [Sat, 28 Jun 2014 06:57:08 +0000 (06:57 +0000)]
Flamer : still buggy but animation is better

8 years agoStill working on Flamer
benblan [Fri, 27 Jun 2014 17:34:52 +0000 (17:34 +0000)]
Still working on Flamer

8 years agoreRework Actions
benblan [Wed, 11 Jun 2014 07:56:27 +0000 (07:56 +0000)]
reRework Actions
 - Added the Flame Thrower action (still in work)
 - misc

8 years agoRework Actions
benblan [Tue, 13 May 2014 09:40:19 +0000 (09:40 +0000)]
Rework Actions
 - New AgentBehaviour class in new behaviour.* files
 - Persuadotron use is now implemented in the AgentBehaviour class
 - Persuadotron is no more used as a shooting weapon
 - Added possibility to change Timer max time after creation
 - Agent's life is now restored automatically if he wears an upgraded chest

8 years agoImplemented GaussGun
benblan [Fri, 9 May 2014 14:39:44 +0000 (14:39 +0000)]
Implemented GaussGun
 - Removed ProjectileShot / Added GaussGunShot
 - Timebomb is now activated explicitly during execution of dropping weapon action to prevent
 bombs from being activated when an agent dies and drops automatically all his weapons.

8 years agoWebsite update
benblan [Thu, 17 Apr 2014 05:31:27 +0000 (05:31 +0000)]
Website update

8 years agorework-actions
benblan [Tue, 1 Apr 2014 07:54:16 +0000 (07:54 +0000)]
rework-actions
- Removed unused WeaponInstance::isReloading() method
- Removed Mission::shots_ attribute
- Removed the use of Weapon::timeForShot() in the calculation of time between two shots.
- Implementation of automatic shoots (uzi and PM)
- Removed ShootingEvents structure

8 years agoWeb site
benblan [Mon, 24 Mar 2014 12:38:11 +0000 (12:38 +0000)]
Web site
- update of icons

8 years agorework-actions
benblan [Wed, 19 Mar 2014 21:26:00 +0000 (21:26 +0000)]
rework-actions
- Finished renaming of dirMoveType to DirMoveType
- Removed ShotClass::createExplosion()
- Added PedInstance::getRealDamage() but no implementation
- TimeBomb now use Explosion::createExplosion() method
- Added sound for explosion

8 years ago- Removed ShotAttributes. Merged with ShootableMapObject::DamageInflictType
benblan [Mon, 17 Mar 2014 16:11:23 +0000 (16:11 +0000)]
- Removed ShotAttributes. Merged with ShootableMapObject::DamageInflictType
- new FallDeadHitAction to represent suicide of agent
- New type of Shot : Explosion
- moved WeaponInstance::fillShotAttributes() to ShootAction::fillDamageDesc()
- moved dirMoveType to path.h
- now Ped walk when burning (new class WalkBurnHitAction)
- removed set_is_suiciding()/is_suiciding()

8 years agorework-actions
benblan [Wed, 15 Jan 2014 08:16:36 +0000 (08:16 +0000)]
rework-actions
- Rename commit_suicide() in commitSuicide()
- Removed Shotclass::make_self_shot(). Moved code in Ped::commitSuicide()
- Implemented hit as an action
- new methods ShootableMapObject::handleHit() and ShootableMapObject::handleDeath()
- Renamed dmg_Hit by dmg_Collision

8 years agorework-actions
benblan [Sat, 4 Jan 2014 13:21:04 +0000 (13:21 +0000)]
rework-actions
- Moved Weapon::createInstance() to WeaponInstance::createInstance()
- reimplement impact animation based on target hit
- renamed ad_HitAnims to ImpactAnims
- fixed ped's direction update when hit

8 years agorework-actions
benblan [Wed, 1 Jan 2014 16:46:10 +0000 (16:46 +0000)]
rework-actions
- Moved weaponholder.h in model directory
- Using Medikit is now an action
- Change weapon automatically when empty

8 years agowork-actions (unstable)
benblan [Wed, 1 Jan 2014 11:46:57 +0000 (11:46 +0000)]
work-actions (unstable)
- reimplementation of the shooting action (not finished)

8 years agowork-actions
benblan [Fri, 22 Nov 2013 14:39:58 +0000 (14:39 +0000)]
work-actions
- added new ia directory
- added missing action.cpp file
- move core/actions.h to ia/actions.h

8 years agoThis new branch contains works around ped's actions
benblan [Fri, 22 Nov 2013 13:51:39 +0000 (13:51 +0000)]
This new branch contains works around ped's actions

8 years agoRework
benblan [Mon, 4 Nov 2013 17:59:46 +0000 (17:59 +0000)]
Rework
- Added new constant kScenarioTypeTrigger
- debugId is now automatically added to any mapobject
- new sub methods in MissionManager for readability

8 years agoRework
benblan [Wed, 16 Oct 2013 07:22:55 +0000 (07:22 +0000)]
Rework
- simplified GameplayMenu by moving code in the SquadSelection class
- new constant to store max number of weapon per agent
- Mission::adjXYZ() now implemented in Map
- New method PedInstance::addAction() to manage addActQToQueue() and setActQInQueue()
- Removed Pedinstance::createActQInCar() method as it was not used
- added notion of drivable vehicle (train vs car)

8 years agoTrain implementation (First reworks before adding feature)
benblan [Tue, 8 Oct 2013 20:23:21 +0000 (20:23 +0000)]
Train implementation (First reworks before adding feature)
- Mission now list Vehicle (not VehicleInstance)
- Some methods of VehicleInstance were pulled up in Vehicle class
- Defined some constants for LevelData fields
- reorganized code in MissionManager
- renamed methods PedInstance::checkHostileIs() and checkFriendIs() in isHostileTo() and isFriendWith()

8 years agoRework
benblan [Thu, 3 Oct 2013 20:26:49 +0000 (20:26 +0000)]
Rework
- New class MapRenderer that take in charge all map rendering
- all Mission.numXXX() methods now have return type size_t

9 years agoBug fix
benblan [Wed, 18 Sep 2013 12:06:21 +0000 (12:06 +0000)]
Bug fix
- Fixed bug #63 : added a statement for the default label
- Fixed crash due to AnimWindow using wrong animation
- removed MapObject::useTargetcursor() to explicitly test cursor display in the gameplaymenu.cpp

9 years agoEditor feature and other
benblan [Fri, 30 Aug 2013 07:02:34 +0000 (07:02 +0000)]
Editor feature and other
- Added new menu to view animations
- removed getMessage methods from menumanager.h
- Added forgotten properties read from weapons.dat into Weapon

9 years agoEditor feature + commit missing files
benblan [Thu, 22 Aug 2013 19:42:37 +0000 (19:42 +0000)]
Editor feature + commit missing files
- Added a menu in the editor to view Menu sprites
- Committed missing files : gamemenufactory.*, gamemenuid.h
- moved getMessage methods in appcontext.cpp

9 years agoFeature : new Game editor
benblan [Tue, 20 Aug 2013 06:43:32 +0000 (06:43 +0000)]
Feature : new Game editor
- Modified dump exe to to create a visual editor
- existing dump features are temporarily disabled
- modified common classes (App, Menu, MenuManager, ...) to be used
by game and editor.
- new directory 'editor' to store classes for the editor.

9 years agoBug fix
benblan [Mon, 12 Aug 2013 12:22:06 +0000 (12:22 +0000)]
Bug fix
- fixed regression with weapon selection
- moved MissionManager in GameController

9 years agoWeapon attributes are now defined in a property file
benblan [Wed, 7 Aug 2013 17:28:00 +0000 (17:28 +0000)]
Weapon attributes are now defined in a property file
- moved WeaponManager and ModManager in gamecontroller.h

9 years agoBug fix and rework
benblan [Mon, 5 Aug 2013 21:00:01 +0000 (21:00 +0000)]
Bug fix and rework
- fix a crash when using Medikit
- moved weapons selection methods in WeaponHolder and rework weapon selection
- Adde new hotkeys to access weapon directly
- Added possibility to use Medikit for multiple agents at same time

9 years agoBug fix
benblan [Sat, 3 Aug 2013 06:38:42 +0000 (06:38 +0000)]
Bug fix
- when suiciding by explosion, other agents don't burn but just die leaving weapon on the ground
- rework objective to simplify

9 years agoBug fix
benblan [Thu, 25 Jul 2013 21:21:50 +0000 (21:21 +0000)]
Bug fix
 - renamed action_property field to drop_actions (for clarity)
 - Fixed a bug where agent was not deselected after suicide
 - added svn properties eol on file pedactions.cpp
 - checking if all agents died and mission is failed is now made on handling of event AgentDied

9 years agoadded persuasion points and proper checks
chamel [Thu, 25 Jul 2013 14:03:56 +0000 (14:03 +0000)]
added persuasion points and proper checks

9 years agoupgraded epoll to 3.2
chamel [Thu, 25 Jul 2013 12:08:28 +0000 (12:08 +0000)]
upgraded epoll to 3.2

9 years agotranslated poll into english
chamel [Thu, 25 Jul 2013 09:42:25 +0000 (09:42 +0000)]
translated poll into english

9 years agoadded poll to website, admin password in password.dat is different from used on website
chamel [Tue, 23 Jul 2013 10:44:32 +0000 (10:44 +0000)]
added poll to website, admin password in password.dat is different from used on website

9 years agoadeed forum to website links
chamel [Fri, 19 Jul 2013 14:05:13 +0000 (14:05 +0000)]
adeed forum to website links

9 years agoadded last persuade behavior
chamel [Wed, 17 Jul 2013 14:36:27 +0000 (14:36 +0000)]
added last persuade behavior

9 years agopersuaded ped will find weapon if persuador is armed and pickup it
chamel [Wed, 17 Jul 2013 11:30:36 +0000 (11:30 +0000)]
persuaded ped will find weapon if persuador is armed and pickup it

9 years agoadded random walking when persuador stopped
chamel [Wed, 17 Jul 2013 10:56:32 +0000 (10:56 +0000)]
added random walking when persuador stopped

9 years agoadded animated windows
chamel [Fri, 12 Jul 2013 12:34:06 +0000 (12:34 +0000)]
added animated windows

9 years agoupdated copyrights
chamel [Fri, 12 Jul 2013 08:57:34 +0000 (08:57 +0000)]
updated copyrights

9 years agoSmall changes
benblan [Tue, 9 Jul 2013 22:12:23 +0000 (22:12 +0000)]
Small changes
 - removed unnecessary call to destroyAllWeapons() in Mission::end()
 - new file actions.h with namespace fs_actions to store all about actions
 - creation of enum CreatOrigin
 - created some utility functions to clear code
 - renamed function kill() to commit_suicide()

9 years ago- Simulation of enemy syndicates activity
benblan [Thu, 4 Jul 2013 07:22:03 +0000 (07:22 +0000)]
- Simulation of enemy syndicates activity
- Translation of "game paused" in french

9 years agoupdated debug code to use keys;
chamel [Wed, 3 Jul 2013 12:50:11 +0000 (12:50 +0000)]
updated debug code to use keys;
added class animwindow - not completed

9 years ago - removed agentAndNonEnum and changed isOurAgent() implementation
benblan [Mon, 1 Jul 2013 09:00:10 +0000 (09:00 +0000)]
 - removed agentAndNonEnum and changed isOurAgent() implementation
 - when player changes color, check if color is already assigned to an enemy syndicate
 - changed save file version to 1.2 : when saving Blocks, don't save the color of the block
   but the owner.

9 years agopanic immunity for objective peds
chamel [Fri, 28 Jun 2013 08:46:28 +0000 (08:46 +0000)]
panic immunity for objective peds

9 years agoadded return to movedir function
chamel [Fri, 28 Jun 2013 08:17:30 +0000 (08:17 +0000)]
added return to movedir function

9 years agousing default actions queue to fill main queue
chamel [Thu, 27 Jun 2013 12:38:55 +0000 (12:38 +0000)]
using default actions queue to fill main queue

9 years agoadded checkowner logic
chamel [Wed, 26 Jun 2013 09:28:56 +0000 (09:28 +0000)]
added checkowner logic

9 years agorespecting user weaon selection when shooting
chamel [Wed, 26 Jun 2013 08:19:09 +0000 (08:19 +0000)]
respecting user weaon selection when shooting

9 years agofixed weapons time consuming
chamel [Mon, 24 Jun 2013 15:43:47 +0000 (15:43 +0000)]
fixed weapons time consuming

9 years agoadded check owner function;
chamel [Fri, 21 Jun 2013 08:57:08 +0000 (08:57 +0000)]
added check owner function;
controlled peds will have speed adjusted based on controllers adrenaline level

9 years agoInactive agents are not loaded anymore.
benblan [Tue, 18 Jun 2013 06:48:16 +0000 (06:48 +0000)]
Inactive agents are not loaded anymore.
When loading a mission, inactive agents are not instanciated and inserted in the peds list anymore.
Neither are Peds between the 4 and 7 ranks.
So now, use Squad::squadMember() to get an agent and Squad::size() to get the first ped in the peds list.

9 years agoadded findweapon logic
chamel [Mon, 17 Jun 2013 09:24:06 +0000 (09:24 +0000)]
added findweapon logic

9 years agoadded findweapon function;
chamel [Sun, 16 Jun 2013 11:43:19 +0000 (11:43 +0000)]
added findweapon function;
fixed weapon ranks setup;
fixed time setup for waiting before and after action

9 years agoRefactoring
benblan [Tue, 11 Jun 2013 17:56:50 +0000 (17:56 +0000)]
Refactoring
- mission is now loaded from the LoadingMenu
- minimapOverlay is created in the BriefMenu

9 years agoOptimizations
benblan [Sat, 8 Jun 2013 07:54:18 +0000 (07:54 +0000)]
Optimizations
- small improvements to optimize the code
- removed some uncalled methods

9 years agoadded man page
chamel [Mon, 3 Jun 2013 13:47:33 +0000 (13:47 +0000)]
added man page

9 years agore-edited authors removed no spam using only sourceforge emails should be enough
chamel [Mon, 3 Jun 2013 13:33:28 +0000 (13:33 +0000)]
re-edited authors removed no spam using only sourceforge emails should be enough

9 years agoupdated authors, looks like many have done something;
chamel [Mon, 3 Jun 2013 11:15:42 +0000 (11:15 +0000)]
updated authors, looks like many have done something;
removed done from TODO;
merged patch from Luboš Novák, overriding locations for binary and data

9 years agosmall fix to panic, peds non controlled will panic for 3 sec
chamel [Mon, 3 Jun 2013 10:30:07 +0000 (10:30 +0000)]
small fix to panic, peds non controlled will panic for 3 sec

9 years agocivilians will panic when they see weapons
chamel [Mon, 3 Jun 2013 10:22:06 +0000 (10:22 +0000)]
civilians will panic when they see weapons

9 years agopreparing for default_actions_ use #2
chamel [Sun, 2 Jun 2013 15:11:08 +0000 (15:11 +0000)]
preparing for default_actions_ use #2

9 years agopreparing for use of default_actions_
chamel [Sun, 2 Jun 2013 12:56:07 +0000 (12:56 +0000)]
preparing for use of default_actions_

9 years agoAgent death is now an event
benblan [Sun, 19 May 2013 09:01:16 +0000 (09:01 +0000)]
Agent death is now an event
do not need to check every time

9 years agoAdded new class GameController
benblan [Sat, 18 May 2013 17:03:11 +0000 (17:03 +0000)]
Added new class GameController
Events are now managed centrally by GameController

9 years agoSmall improvements :
benblan [Sat, 18 May 2013 09:20:38 +0000 (09:20 +0000)]
Small improvements :
- removed health attribute from Agent as it is always constant
- new method PedInstance::initAsAgent()
- added some comment

9 years agoselected dragged weapon is drawn on top of other inventory items
chamel [Wed, 15 May 2013 14:44:40 +0000 (14:44 +0000)]
selected dragged weapon is drawn on top of other inventory items

9 years agoupdate of ipa for all selected agents;
chamel [Wed, 15 May 2013 13:57:27 +0000 (13:57 +0000)]
update of ipa for all selected agents;
ipa setting can be done with moving mouse

9 years agoremoved checked for clearing in tile drawing it is not used and based check for tile...
chamel [Wed, 15 May 2013 09:32:50 +0000 (09:32 +0000)]
removed checked for clearing in tile drawing it is not used and based check for tile drawing on not_aplha instead of tile id

9 years agoall selected agents will explode simultaniously
chamel [Wed, 15 May 2013 09:11:51 +0000 (09:11 +0000)]
all selected agents will explode simultaniously

9 years agoour agents will only shoot by themself with inteligence+perception boosted or mod...
chamel [Wed, 15 May 2013 08:33:56 +0000 (08:33 +0000)]
our agents will only shoot by themself with inteligence+perception boosted or mod brain v3;
adjusted offsets for pathfinding

9 years agoadded exchange weapon between agents in selectmenu;
chamel [Tue, 14 May 2013 14:27:15 +0000 (14:27 +0000)]
added exchange weapon between agents in selectmenu;
updated todo, readme

9 years agoremoved use of memset - even though my thought was it is better optimized then our...
chamel [Tue, 14 May 2013 07:48:28 +0000 (07:48 +0000)]
removed use of memset - even though my thought was it is better optimized then our own code, but due to a lot of small calls with little data to handle its efficiency is actually becomes negative;
removed warnings due to variable shadowing

9 years agoCode Refactoring:
benblan [Sun, 28 Apr 2013 09:39:03 +0000 (09:39 +0000)]
Code Refactoring:
- Vehicle renamed in VehicleAnimation
- Vehicles are now loaded in MissionManager
- vehiclemanager.cpp and vehiclemanager.h deleted

9 years agoCode refactoring
benblan [Thu, 25 Apr 2013 14:54:18 +0000 (14:54 +0000)]
Code refactoring
- mission loading is now in missionmanager
- minimap_overlay is now in BriefMinimapRenderer

9 years agofixed blocker detection, I should stop breaking it
chamel [Thu, 25 Apr 2013 11:29:24 +0000 (11:29 +0000)]
fixed blocker detection, I should stop breaking it

9 years agoadded fix for accuracy;
chamel [Thu, 25 Apr 2013 11:07:28 +0000 (11:07 +0000)]
added fix for accuracy;
changed auto-weapon selection

9 years agoadded influence of adrenaline and installed mods to accuracy of fire
chamel [Thu, 25 Apr 2013 10:21:41 +0000 (10:21 +0000)]
added influence of adrenaline and installed mods to accuracy of fire

9 years agoadded timeout before checking enviroment - this decreases CPU use dramatically
chamel [Fri, 19 Apr 2013 16:30:53 +0000 (16:30 +0000)]
added timeout before checking enviroment - this decreases CPU use dramatically

9 years agoupdating description for scenarios;
chamel [Thu, 18 Apr 2013 17:19:29 +0000 (17:19 +0000)]
updating description for scenarios;
fixed patch for kenya

9 years agoSmall changes
benblan [Wed, 17 Apr 2013 16:17:25 +0000 (16:17 +0000)]
Small changes
- fixed a warning in VS
- removed level_data_ member from Mission