Frictional Games Forum (read-only)
Working combat system ! - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Articles (https://www.frictionalgames.com/forum/forum-40.html)
+---- Thread: Working combat system ! (/thread-14444.html)

Pages: 1 2 3 4 5


RE: Working combat system ! - stonecutter - 04-04-2012

Updated !
Added a few sounds ...

[video=youtube]http://youtu.be/xOHvp_ibCiY[/video]


Now lets find a way to solve the problem with a good death animation ... Tongue
Check out there :
http://www.frictionalgames.com/forum/thread-14485.html



RE: Working combat system ! - stonecutter - 04-05-2012

Added to the code :

PHP Code:
for (int i 1i<=2; ++i){
        if(
GetLocalVarInt("MonsterHitCounter_"+i)==4){
             for(
int a 1a<=5; ++a){
             if(
GetEntitiesCollide("gun_target_"+i,"ScriptArea_"+a)==true){
             
FadeEnemyToSmoke("gun_target_"+ifalse);
             
CreateEntityAtArea("Test","corpse_scientist02_ragdoll.ent","ScriptArea_"+a,false);
             }
             
            } 


Now if the enemy dies ... there will be created a ragdoll at the area the enemy dies !
But you have to set a lots of ares ( around the path the enemy walks ) as you can see in the picture !



RE: Working combat system ! - Statyk - 04-05-2012

This is quite impressive =] I'll definitely have to keep an eye on this.


RE: Working combat system ! - Datguy5 - 04-05-2012

(04-05-2012, 12:49 PM)stonecutter Wrote: Added to the code :

PHP Code:
for (int i 1i<=2; ++i){
        if(
GetLocalVarInt("MonsterHitCounter_"+i)==4){
             for(
int a 1a<=5; ++a){
             if(
GetEntitiesCollide("gun_target_"+i,"ScriptArea_"+a)==true){
             
FadeEnemyToSmoke("gun_target_"+ifalse);
             
CreateEntityAtArea("Test","corpse_scientist02_ragdoll.ent","ScriptArea_"+a,false);
             }
             
            } 


Now if the enemy dies ... there will be created a ragdoll at the area the enemy dies !
But you have to set a lots of ares ( around the path the enemy walks ) as you can see in the picture !
I suggested the ragdoll to you C:




RE: Working combat system ! - JetlinerX - 04-05-2012

Wow...simply amazing.



RE: Working combat system ! - stonecutter - 04-05-2012

Yeah thank you ...

but there is still a lot of work to do ... Tongue



RE: Working combat system ! - Hardarm - 04-13-2012

Couldn't you create a shape around the monster with the modeleditor where you can spawn your ragdoll on death? Smile


RE: Working combat system ! - trollox - 04-13-2012

This is really nice all you need to now i creat a pistol with small lamp above so it actually looks like there's a pistol aswell as the light function. I'll defently keep an eye on this , it's interesting :o


RE: Working combat system ! - stonecutter - 04-13-2012

(04-13-2012, 03:36 PM)Hardarm Wrote: Couldn't you create a shape around the monster with the modeleditor where you can spawn your ragdoll on death? Smile
Its worth a try Smile

but currently waiting for the pistol and animation Smile





RE: Working combat system ! - DRedshot - 04-15-2012

I'm sure there is a parameter in the monsters UserDefinedVariables that lets you select an entity to spawn on Death. Have you tried using that?

It looks amazing so far, Good luck with it!