|
08-26-2010, 04:06 PM | #1 |
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 |
|
08-26-2010, 04:43 PM | #2 |
Stuff Do-er
Lua Team
Wiki Team Fortress Forever Staff |
You probably don't have the trigger named properly, so it's not using the allowed function and therefore trying to remove a player. The trigger should be named "remove_projectiles".
That's my guess.
__________________
#FF.Pickup ¤ Fortress-Forever pickups My Non-official Maps Released FF_DM_Squeek - FF_2Mesa3_Classic - FF_Siege_Classic Beta FF_Myth - FF_Redlight_Greenlight Sick of the people on the internet, always moanin'. They just moan. - Karl Pilkington |
|
08-28-2010, 12:04 PM | #3 |
Join Date: Jul 2007
Location: Staten Island, NY
Class/Position: Offense Gametype: CTF Affiliations: [TALOS] .t5 Posts Rated Helpful 3 Times
|
No, still doesn't work. Any word when 2.5 will out?
|
|
08-28-2010, 02:06 PM | #4 |
Gets tickled by FF
Fortress Forever Staff
Join Date: Jun 2007
Location: UK
Class/Position: Med Solly HW Gametype: Any/CTF Posts Rated Helpful 41 Times
|
HAH!
|
|
08-31-2010, 07:53 PM | #5 |
Nade Whore
Server Owner
Beta Tester Join Date: Sep 2007
Location: Oklahoma
Class/Position: Scout/Soldier Gametype: CTF/TDM Affiliations: blunt. Moto Posts Rated Helpful 128 Times
|
Yeah, WhenFF2.5WillOut?
|
|
08-31-2010, 08:27 PM | #6 |
Stuff Do-er
Lua Team
Wiki Team Fortress Forever Staff |
Try using this code instead for testing:
Code:
remove_projectiles = trigger_ff_script:new({ }) function remove_projectiles:allowed(allowed_entity) ConsoleToAll("[script] Allowed function called...") return false end
__________________
#FF.Pickup ¤ Fortress-Forever pickups My Non-official Maps Released FF_DM_Squeek - FF_2Mesa3_Classic - FF_Siege_Classic Beta FF_Myth - FF_Redlight_Greenlight Sick of the people on the internet, always moanin'. They just moan. - Karl Pilkington Last edited by squeek.; 08-31-2010 at 08:27 PM. |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|