| 
	
		
		
			
			 
				
				Hook function for collisions between players and other players/bullets
			 
			 
			
		
		
		
		  
			
			JJ2+'s AngelScript API currently doesn't provide a straight-forward way to determine what to do when collision occurs between players and other players/bullets. The closest to this is onRoast which doesn't cover all cases. 
Example of such a hook's function signature:
 
	Code: 
	void onCollide(jjPLAYER@ victim, jjPLAYER@ collider, COLLIDE::Collide collision, jjOBJ@ bullet) 
 where  COLLIDE::Collide is what type of collision it is, and  bullet is non-null if collision's value is  COLLIDE::BULLET or something.
 
In fact, I already made a mutator ( https://www.jazz2online.com/download...on-detector-v2) that attempts to do this because I'm working on a script that sometimes needs to decide what to do when specific collisions happen. Even then, my mutator isn't the most elegant solution, so I think this would be better as a native feature if that's feasible.
		  
		
		
		
		
		
		
		
	 |