View unanswered posts | View active topics It is currently Sun Apr 28, 2024 4:29 am



Reply to topic  [ 219 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 15  Next
 Remote Elimination of Targets & Recon Drone Support 8/12/12 
Author Message
Data Realms Elite
Data Realms Elite
User avatar

Joined: Wed Sep 05, 2007 4:14 am
Posts: 3966
Location: Canadida
Reply with quote
Post Re: Remote Elimination of Targets & Reconnaissance Drone Support
Well then does it work or not?


Tue Jun 08, 2010 4:49 am
Profile
User avatar

Joined: Tue Mar 20, 2007 10:16 am
Posts: 186
Location: Australia
Reply with quote
Post Re: Remote Elimination of Targets & Reconnaissance Drone Support
Nope :(


Tue Jun 08, 2010 6:34 am
Profile
User avatar

Joined: Sun Jul 13, 2008 9:57 am
Posts: 4886
Location: some compy
Reply with quote
Post Re: Remote Elimination of Targets & Reconnaissance Drone Support
Can you post the output of the console? I can't run CC at the moment (Wine is playing up <_<) so I'm not able to really debug it myself. hit ~ and see if it's spamming anything.


Tue Jun 08, 2010 7:29 am
Profile WWW
User avatar

Joined: Tue Mar 20, 2007 10:16 am
Posts: 186
Location: Australia
Reply with quote
Post Re: Remote Elimination of Targets & Reconnaissance Drone Support
Geti wrote:
Can you post the output of the console? I can't run CC at the moment (Wine is playing up <_<) so I'm not able to really debug it myself. hit ~ and see if it's spamming anything.

Oh silly me. I misspelt the filename. It worked perfectly on the tutorial mission, only problems being that it passes through some doors if it foesnt come near enough the motor. I haven't tried firing at a dropship or giant actors, but similar issues would probably come out of that aswell. Easily fixed, with the tradeoff that its more dangerous to be right next to enemy actors. I tried it on the UAV demo mission and all worked well up untill the drones got deep inside the base and bullets stopped colliding. I checked the console and found:

Image

Bah, can hardly read it with that compression. It says

Error: Hover.rte/HitsMOs.lua:10: attempt to index feild 'parent' (a nil value)


Tue Jun 08, 2010 10:02 am
Profile
User avatar

Joined: Sun Jul 13, 2008 9:57 am
Posts: 4886
Location: some compy
Reply with quote
Post Re: Remote Elimination of Targets & Reconnaissance Drone Support
Code:
function Create(self)
 local curdist = 100; --only check within 100 px.
 for actor in MovableMan.Actors do
  local dist = (actor.Pos - self.Pos).Magnitude
  if dist < curdist then
   curdist = dist;
   self.parent = actor;
  end
 end
 if self.parent then --make sure we've found an actor
  self.saveTeam = self.parent.Team; --set our team to the closest actor
  self.switch = false; --used to prevent _too_ much drain on old particles
 else
  self.switch = true; --turn off the crazy function
  self.HitsMOs = true;  --and turn on hitting
end

function Update(self)
 if not self.switch then --turn off the check once we've been activated.
  for actor in MovableMan.Actors do --iterate through all the actors
   if actor.Team ~= self.saveTeam then --once there's one that isnt on our team
    if (actor.Pos - self.Pos).Magnitude < 100 then --that's closeby
     self.HitsMOs = true; --turn on hitsmos
     self.switch = true; --set the switch so we don't keep doing all this iteration
     break --and break the loop
    end
   end
  end
 end
end
should fix that issue, not sure why it's there though. OH! scene wrapping, I'm assuming. I can't remember exactly how to use SceneMan:ShortestDistance() at the moment, can someone rewrite it using that to fix this on map seams?.. in any case, upped the check to 100 px on the receiving end. Tell me how it goes.


Tue Jun 08, 2010 1:27 pm
Profile WWW
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jul 03, 2009 11:05 am
Posts: 3878
Reply with quote
Post Re: Remote Elimination of Targets & Reconnaissance Drone Support
What does that script do?


Tue Jun 08, 2010 1:52 pm
Profile
User avatar

Joined: Sun Jul 13, 2008 9:57 am
Posts: 4886
Location: some compy
Reply with quote
Post Re: Remote Elimination of Targets & Reconnaissance Drone Support
Prevents close range friendly fire, same as the other one. just prevents it from throwing errors everywhere at the map scene.


Tue Jun 08, 2010 2:06 pm
Profile WWW

Joined: Fri Aug 24, 2007 8:29 pm
Posts: 85
Reply with quote
Post Re: Remote Elimination of Targets & Reconnaissance Drone Support
Since build 13? That's some dedication. I'm surprised you didn't get tired of working on it. Awesome job.


Tue Jun 08, 2010 3:20 pm
Profile
User avatar

Joined: Tue Mar 20, 2007 10:16 am
Posts: 186
Location: Australia
Reply with quote
Post Re: Remote Elimination of Targets & Reconnaissance Drone Support
Phatmonkey wrote:
Since build 13? That's some dedication. I'm surprised you didn't get tired of working on it. Awesome job.

There's been several remakes of this from scratch. I'd usually make something within 2-3 days, get bored of it and stop. This is the first time I've made one finished enough for a release.

Geti wrote:
should fix that issue, not sure why it's there though. OH! scene wrapping, I'm assuming. I can't remember exactly how to use SceneMan:ShortestDistance() at the moment, can someone rewrite it using that to fix this on map seams?.. in any case, upped the check to 100 px on the receiving end. Tell me how it goes.
Getting an error: Image


Wed Jun 09, 2010 7:41 am
Profile
User avatar

Joined: Sun Jul 13, 2008 9:57 am
Posts: 4886
Location: some compy
Reply with quote
Post Re: Remote Elimination of Targets & Reconnaissance Drone Support
Code:
function Create(self)
   local curdist = 100; --only check within 100 px.
   for actor in MovableMan.Actors do
      local dist = (actor.Pos - self.Pos).Magnitude
      if dist < curdist then
         curdist = dist;
         self.parent = actor;
      end
   end
   if self.parent then --make sure we've found an actor
      self.saveTeam = self.parent.Team; --set our team to the closest actor
      self.switch = false; --used to prevent _too_ much drain on old particles
   else
      self.switch = true; --turn off the crazy function
      self.HitsMOs = true;  --and turn on hitting
   end
end

function Update(self)
   if not self.switch then --turn off the check once we've been activated.
      for actor in MovableMan.Actors do --iterate through all the actors
         if actor.Team ~= self.saveTeam then --once there's one that isnt on our team
            if (actor.Pos - self.Pos).Magnitude < 100 then --that's closeby
               self.HitsMOs = true; --turn on hitsmos
               self.switch = true; --set the switch so we don't keep doing all this iteration
               break --and break the loop
            end
         end
      end
   end
end
missed an end. idiot mistake, sorry.


Wed Jun 09, 2010 7:50 am
Profile WWW
User avatar

Joined: Thu Apr 22, 2010 11:03 pm
Posts: 11
Reply with quote
Post Re: Remote Elimination of Targets & Reconnaissance Drone Support
Just tried these things..

Dropped them off at high altitude from a dropship once.. They landed on the ground safely, but then weirdly started shooting everywhere and them one of them somehow got the brain without me noticing.

Tried it again on another map and they worked perfectly. Well, as perfect as they can be. :P

EDIT: Just tried it again.. Apparently Astro makes them all go berserk. No idea why.

EDIT2: On Dummy Assault, the actor versions just shot down the dropship with which I deployed them and did not much else.. The bomb versions acted properly.


Wed Jun 09, 2010 9:28 am
Profile
User avatar

Joined: Tue Mar 20, 2007 10:16 am
Posts: 186
Location: Australia
Reply with quote
Post Re: Remote Elimination of Targets & Reconnaissance Drone Support
The script works, but in some semi-rare cases certain drones don't have their bullets activate for them. I've found this happens more often when they're close to the enemy, so it may be a logic issue where they're already within range. In most cases they've stopped brutally murdering each other, so thats a plus. :grin:

pringer X wrote:
Just tried these things..

Dropped them off at high altitude from a dropship once.. They landed on the ground safely, but then weirdly started shooting everywhere and them one of them somehow got the brain without me noticing.

Tried it again on another map and they worked perfectly. Well, as perfect as they can be. :P

EDIT: Just tried it again.. Apparently Astro makes them all go berserk. No idea why.

EDIT2: On Dummy Assault, the actor versions just shot down the dropship with which I deployed them and did not much else.. The bomb versions acted properly.

They do have a few interesting behavioural issues. I wish I knew why stuff like that happened.


Wed Jun 09, 2010 10:10 am
Profile

Joined: Tue Feb 02, 2010 11:36 pm
Posts: 130
Reply with quote
Post Re: Remote Elimination of Targets & Reconnaissance Drone Support
Hmm... I have a suggestion for a new unit. The Remote Elimination of Targets & Reconnaissance Drone: Special Purpose Eliminator Drone. The RETARD-SPED.

Just a heavier, better armored drone, with code similar to CC48's Hunter Bot (Minus the weapon pickup bit.). As for weapons, drop the digger and give it a laser burst weapon. Slightly weaker shots than the orgianal, but fully automatic with double the ammo capacity. For a slug weapon, you could have a single shot slug-cannon (Single shot revolver cannon.) That is to say, a revolver cannon with one shot, longer sharpaim, and slightly faster reload.

It would be a deployable drone specifically for taking down enemy bots and clones.


Wed Jun 09, 2010 7:35 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Wed Sep 05, 2007 4:14 am
Posts: 3966
Location: Canadida
Reply with quote
Post Re: Remote Elimination of Targets & Reconnaissance Drone Support
I'd rather have Remote Elimination of Targets & Reconnaissance Drone Extra Death, in which you have to kill three times before it dies.


Wed Jun 09, 2010 11:32 pm
Profile
User avatar

Joined: Tue Mar 16, 2010 7:38 pm
Posts: 447
Location: The Ninth Circle
Reply with quote
Post Re: Remote Elimination of Targets & Reconnaissance Drone Support
As long as it spells RETARDED, I take it. So... Remote Elimination of Targets & Recon Drone, Especially Dumb?


Wed Jun 09, 2010 11:41 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 219 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 15  Next

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.077s | 15 Queries | GZIP : Off ]