Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support


Post Reply 
 
Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Working combat system !
Author Message
stonecutter Offline
Member

Posts: 140
Joined: Feb 2011
Reputation: 4
Post: #31
RE: Working combat system !

Updated !
Added a few sounds ...






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

We Shall Arise - Death / Grind from Bavaria
Musicvideo : http://goo.gl/HzxvLK
Facebook : http://goo.gl/9YfYCV
Free Album : http://goo.gl/sEBW2X
(This post was last modified: 04-04-2012 09:27 PM by stonecutter.)
04-04-2012 09:26 PM
Find all posts by this user Quote this message in a reply
stonecutter Offline
Member

Posts: 140
Joined: Feb 2011
Reputation: 4
Post: #32
RE: Working combat system !

Added to the code :

PHP Code: (Select All)
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 !


Attached File(s)
.jpg  Combat.jpg (Size: 207.41 KB / Downloads: 51)

We Shall Arise - Death / Grind from Bavaria
Musicvideo : http://goo.gl/HzxvLK
Facebook : http://goo.gl/9YfYCV
Free Album : http://goo.gl/sEBW2X
04-05-2012 12:49 PM
Find all posts by this user Quote this message in a reply
Statyk Offline
Modmau5

Posts: 4,280
Joined: Sep 2011
Reputation: 236
Post: #33
RE: Working combat system !

This is quite impressive =] I'll definitely have to keep an eye on this.
04-05-2012 03:36 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Datguy5 Offline
Senior Member

Posts: 621
Joined: Dec 2011
Reputation: 12
Post: #34
RE: Working combat system !

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

PHP Code: (Select All)
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:

04-05-2012 05:05 PM
Find all posts by this user Quote this message in a reply
JetlinerX Offline
Senior Member

Posts: 599
Joined: Jun 2011
Reputation: 19
Post: #35
RE: Working combat system !

Wow...simply amazing.

Lead Developer of "The Attic"
~Slade Mitchell

Chapter 3 (REL)

04-05-2012 08:16 PM
Visit this user's website Find all posts by this user Quote this message in a reply
stonecutter Offline
Member

Posts: 140
Joined: Feb 2011
Reputation: 4
Post: #36
RE: Working combat system !

Yeah thank you ...

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

We Shall Arise - Death / Grind from Bavaria
Musicvideo : http://goo.gl/HzxvLK
Facebook : http://goo.gl/9YfYCV
Free Album : http://goo.gl/sEBW2X
04-05-2012 08:36 PM
Find all posts by this user Quote this message in a reply
Hardy Floppy Arm Offline
Posting Freak

Posts: 872
Joined: Apr 2011
Reputation: 42
Post: #37
RE: Working combat system !

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

IM DOING MY THANG

dumdum duuum-dum
04-13-2012 03:36 PM
Visit this user's website Find all posts by this user Quote this message in a reply
trollox Offline
Member

Posts: 215
Joined: Dec 2011
Reputation: 3
Post: #38
RE: Working combat system !

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
04-13-2012 04:52 PM
Find all posts by this user Quote this message in a reply
stonecutter Offline
Member

Posts: 140
Joined: Feb 2011
Reputation: 4
Post: #39
RE: Working combat system !

(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

We Shall Arise - Death / Grind from Bavaria
Musicvideo : http://goo.gl/HzxvLK
Facebook : http://goo.gl/9YfYCV
Free Album : http://goo.gl/sEBW2X
04-13-2012 06:27 PM
Find all posts by this user Quote this message in a reply
DRedshot Offline
Senior Member

Posts: 374
Joined: Jun 2011
Reputation: 11
Post: #40
RE: Working combat system !

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!

04-15-2012 01:37 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)