Fortress Forever

Go Back   Fortress Forever > Editing > Mapping > Lua

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 08-26-2010, 04:06 PM   #1
DeToXxX
 
DeToXxX's Avatar
 
Join Date: Jul 2007
Location: Staten Island, NY
Class/Position: Offense
Gametype: CTF
Affiliations: [TALOS] .t5
Posts Rated Helpful 3 Times
SQUEEEEEEEEEK

I was trying to use part of a lua you made for GT for ff_r123 and it works fine for stopping the bullets from going through. But, the only issue is when you attempt to walk through it crashes HL. Here is script:

Code:
------------------------------------------
-- remove projectiles (Credit to Squeek)
-- http://forums.fortress-forever.com/showthread.php?t=19904
------------------------------------------

remove_projectiles = trigger_ff_script:new({ })

function remove_projectiles:allowed(allowed_entity)
	if IsNotProjectile(allowed_entity) then
		return false
	end
	return true
end

function IsNotProjectile( allowed_entity )
	return IsPlayer(allowed_entity) or IsGrenade(allowed_entity) or IsTurret(allowed_entity) or IsDispenser(allowed_entity) or IsSentrygun(allowed_entity) or IsDetpack(allowed_entity)
end
DeToXxX is offline   Reply With Quote


 


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 08:26 PM.


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