Fortress Forever

Go Back   Fortress Forever > Editing > Mapping

Reply
 
Thread Tools Display Modes
Old 10-08-2007, 06:29 AM   #1
public_slots_free
 
Join Date: Sep 2007
Posts Rated Helpful 0 Times
Nade stick area?

Anyone have any ideas on how to make a certain spot on the map that when a grenade is thrown at it, it would stick? Some kind of brush-based entity perhaps.
public_slots_free is offline   Reply With Quote


Old 10-08-2007, 06:55 AM   #2
A1win
Nutcracker
 
A1win's Avatar
 
Join Date: Sep 2007
Location: Kuopio, Finland
Posts Rated Helpful 0 Times
Send a message via MSN to A1win
Do you mean stick on the ground or in the air?

You could use a heavy trigger_gravity (named "grenadegravity" for the LUA code below) to push them down on an even surface. Set the "Physics objects" flag on (or "Everything" if this doesn't work), and only allow grenade entities for it like this:
Code:
grenadegravity = new:trigger_ff_script({ })
grenadegravity:allowed( allowed_entity )
  if IsGrenade(allowed_entity)
    return true
  end
  return false
end
It would just push them down though. Some kind of physics magnet might work to stick them on walls etc. but I'm not quite sure how to do that.
A1win is offline   Reply With Quote


Old 10-08-2007, 12:56 PM   #3
public_slots_free
 
Join Date: Sep 2007
Posts Rated Helpful 0 Times
gravity should work. i will try it, thank you.
public_slots_free is offline   Reply With Quote


Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:46 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.