weapon destroy scene props

正在查看此主题的用户

QBDU07

Sergeant
helllloooo , it is possible to create a weapon which destroys scene props without that item be destructible?  thanks
 
We really need a remove scene prop operation that works within a mission. Or at least an operation that removes it's collision mesh so it doesn't take up as many resources.
 
So it's possible or not? if so, could you help me to make her? ? thx and thx for you answer
 
You can make an scene_prop that is only affected by certain weapons, but it is difficult. For my autofire mod I use a scene prop for bullets and hitboxes and use prop_instance_intersects_with_prop_instance to check for collisions. You must have a collision mesh for this to work, but you can use the ai_limiter flag on the scene_prop to bypass normal collisions.
 
MadocComadrin 说:
We really need a remove scene prop operation that works within a mission. Or at least an operation that removes it's collision mesh so it doesn't take up as many resources.

I think You can use for it replace_prop_instance to replace a scene prop with empty prop.

EDIT: Whoops... Sorry, I forget about it.
 
That can only be used in ti_before_mission_start. We need something like that, except mid-mission.
 
MadocComadrin 说:
We really need a remove scene prop operation that works within a mission. Or at least an operation that removes it's collision mesh so it doesn't take up as many resources.
If you only want to remove the collision mesh, destroying the prop does that - which is pretty much the only use I can see for the new prop_instance_receive_damage, since it doesn't trigger ti_on_scene_prop_hit. A method to remove scene props while a mission is running has been requested a few times, but the last response I heard from a developer was that it would never be added to warband, for reasons unspecified - probably that it would require too many breaking changes to the code.
 
后退
顶部 底部