View unanswered posts | View active topics It is currently Thu Dec 26, 2024 5:01 am



Reply to topic  [ 6 posts ] 
 terrain damage reducing script? 
Author Message
User avatar

Joined: Tue Jan 12, 2010 8:25 pm
Posts: 400
Location: mukilteo, wa
Reply with quote
Post terrain damage reducing script?
I could be wrong, but wasn't there a script floating around that reduced the damage rounds did to terrain but still effected actors normally. Any round sharp enough to damage a door is sharp enough to rape terrain. :-(

If you know the one I'm talking about could you send me a link please. -thanks


Thu Sep 01, 2011 7:48 pm
Profile
User avatar

Joined: Tue Apr 01, 2008 4:49 pm
Posts: 1972
Location: The Netherlands
Reply with quote
Post Re: terrain damage reducing script?
There are/were several. Maxim's mod has one, created by whitty. :)


Thu Sep 01, 2011 11:35 pm
Profile
User avatar

Joined: Tue Jan 12, 2010 8:25 pm
Posts: 400
Location: mukilteo, wa
Reply with quote
Post Re: terrain damage reducing script?
Thanks i will check that out after work.


Fri Sep 02, 2011 12:27 am
Profile
User avatar

Joined: Sat Nov 03, 2007 9:44 pm
Posts: 1916
Location: Flint Hills
Reply with quote
Post Re: terrain damage reducing script?
Here's another, options are always nice. Apply script to bullet. Replace 2 with whatever factor you want to divide the sharpness by when an imminent terrain collision is detected.
Code:
function Create(self)
   self.weakened = 1
end

function Update(self)
   if self.weakened == 1 then
      local terrcheck = Vector(0,0);
      if SceneMan:CastStrengthRay(self.Pos, (self.Vel / 3),0,terrcheck,0,0,true) then
         self.Sharpness = self.Sharpness / 2
         self.weakened = 2
      end
   end
end


Sat Sep 03, 2011 12:48 am
Profile
User avatar

Joined: Tue Apr 01, 2008 4:49 pm
Posts: 1972
Location: The Netherlands
Reply with quote
Post Re: terrain damage reducing script?
Thanks! :grin:


Sat Sep 03, 2011 1:54 am
Profile
User avatar

Joined: Tue Jan 12, 2010 8:25 pm
Posts: 400
Location: mukilteo, wa
Reply with quote
Post Re: terrain damage reducing script?
I will try that out thanks, i did find whitty's.
I think i will compair them im sure one will work better.


Sat Sep 03, 2011 1:56 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.117s | 13 Queries | GZIP : Off ]