git » fp-git.git » commit 2d9110b

improved fallings

author rata
2005-02-19 09:09:24 UTC
committer rata
2005-02-19 09:09:24 UTC
parent e4904a8a2870e1d90de53719b3dc8e7ae3b5697c

improved fallings

FP/src/conf/states/main.conf +84 -9

diff --git a/FP/src/conf/states/main.conf b/FP/src/conf/states/main.conf
index a55187c..b1ebea5 100644
--- a/FP/src/conf/states/main.conf
+++ b/FP/src/conf/states/main.conf
@@ -32,6 +32,18 @@
 create exit splash
 
 normal:
+	action		ToFall
+		conditions
+			MapNotOn		walkable
+		next
+			falling1
+		steps
+			relative 0
+		animation
+			15
+
+
+
 #	action            Jump and crash
 #		conditions
 #			KeyUp                  pressed
@@ -186,15 +198,17 @@ normal:
 		animation
 			118-120 p
 			
-	action		 Falling for debug
-		conditions          #TODO: delete this action, is only for debug purposes
-			MapNotOn         walkable
-		next
-			crouched
-		steps
-			relative  0
-		animation
-			15 fh $2
+	
+
+#	action		 Falling for debug
+#		conditions          #TODO: delete this action, is only for debug purposes
+#			MapNotOn         walkable
+#		next
+#			crouched
+#		steps
+#			relative  0
+#		animation
+#			15 fh $2
 
 	action            If there aren't more actions then the normal state is kept
 		conditions
@@ -213,6 +227,16 @@ normal:
 			1
 
 running:
+	action		ToFall
+		conditions
+			MapNotOn		walkable
+		next
+			Falling1
+		steps
+			relative 0
+		animation
+			15
+
 	action		 Crouch
 		conditions
 			KeyDown			pressed
@@ -287,6 +311,20 @@ running:
 			49-52 p
 
 crouched:
+	action		ToFall
+		conditions
+			MapNotOn		walkable
+		next
+			Falling1
+		steps
+			relative 0
+		animation
+			15
+
+
+
+
+
 #	action		Walk crouched and crash
 #		conditions
 #			KeyDown			pressed
@@ -368,3 +406,40 @@ crouched:
 #			coruched
 #		animation
 #			120 p
+falling1:
+	action		falling to a walkable place
+	
+		conditions
+			MapNotOn	walkable
+			MapDown		walkable
+		next
+			crouched
+		animation
+			15 f $2
+		steps
+			relative 0
+	
+	action		falling to spikes
+		
+		conditions
+			MapNotOn	walkable
+			MapDown		spikes
+		next
+			exit spiked
+		animation
+			212-216
+		steps
+			relative 0
+	action
+	
+	action		Continue falling
+		
+		condition
+			MapNotOn	walkable
+		next
+			Falling2
+		steps
+			relative 0
+		animation
+			15		
+