IPB

Welcome Guest ( Log In | Register )

Supression effect?
X1Destroy
post Jul 19 2014, 12:40 AM
Post #1


Captain
***

Group: Soldiers
Posts: 53
Joined: 5-July 12
Member No.: 9,163



How to mod that with vanilla BF2?

I've seen it in PR but I have no clue how to replicate it in my mod.

By supression I meant the screen blurring effect when a bullet is fire near the player. Would help alots for MGs.
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies (1 - 4)
phale
post Jul 19 2014, 10:55 AM
Post #2


Major
****

Group: Soldiers
Posts: 164
Joined: 30-May 13
Member No.: 9,609



QUOTE (X1Destroy @ Jul 19 2014, 02:40 AM) *
How to mod that with vanilla BF2?

I've seen it in PR but I have no clue how to replicate it in my mod.

By supression I meant the screen blurring effect when a bullet is fire near the player. Would help alots for MGs.


Take a look at PR's weapons/common/projectiles/projectiles_common. The effect is achieved by simply adding an explosive (with no damage) to the projectile, so when it impacts near the player the tinnitus effect is used. I recommend also adding a small explosive force, which makes suppression shake your aim, and greatly enhances the effect. You can see what I mean here: https://www.youtube.com/watch?v=cFCheC19Q28


--------------------
Go to the top of the page
 
+Quote Post
X1Destroy
post Jul 19 2014, 11:31 AM
Post #3


Captain
***

Group: Soldiers
Posts: 53
Joined: 5-July 12
Member No.: 9,163



Thank you. So all I have to do is to copy those lines for the every weapon projectiles?

ObjectTemplate.detonation.explosionRadius x
ObjectTemplate.detonation.explosionForce x

Or is there something else to do?

Edit: It worked, as intended. Thank you again.

This post has been edited by X1Destroy: Jul 20 2014, 06:17 AM
Go to the top of the page
 
+Quote Post
bobthedinosaur
post Jul 20 2014, 10:10 PM
Post #4


Dictator
******

Group: Soldiers
Posts: 2,229
Joined: 4-March 11
From: A Cold Place
Member No.: 7,896



pretty cool phale, mind sharing some code tidbits?


--------------------
Not doing modding right now, so please don't ask.
Go to the top of the page
 
+Quote Post
R1zzz
post Nov 27 2017, 03:24 AM
Post #5


Enlisted
*

Group: Soldiers
Posts: 6
Joined: 23-August 16
Member No.: 11,752



QUOTE (X1Destroy @ Jul 20 2014, 12:31 AM) *
Thank you. So all I have to do is to copy those lines for the every weapon projectiles?

ObjectTemplate.detonation.explosionRadius x
ObjectTemplate.detonation.explosionForce x

Or is there something else to do?

Edit: It worked, as intended. Thank you again.


eh, can you tell me the exact value you fill?
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 18th December 2017 - 07:00 AM