View unanswered posts | View active topics It is currently Thu Jan 09, 2025 4:04 pm



Reply to topic  [ 8 posts ] 
 A few coding questions 
Author Message

Joined: Mon Sep 14, 2009 12:49 am
Posts: 2
Reply with quote
Post A few coding questions
Basically i have made a modifyed drone that i want to give weapons to ingame
i can give it a turreted weapon but not a changable one.

I have a rough idea on how to code this now but i have a couple of problems:

How do i define that an actor has an inventory?

What lets them pick up and use weapons?

Can they i turrets or do i have to use arms?

Can an ACrab not use arms? (crash that i cant seem to solve)

Hhow do i chage the aiming angle? At the moment i cant look up or down, i changed the Aimangle to 360 but that had little effect. i would be fine with it but evan if the drone falls over the turret is still consrained to the same angles.

(unfortunatly i cannot upload it right now, maybe tomorrow)

Oh yeah, im new but i allready have spriting and coding experiance.

So... Hi! :hat:


Mon Sep 14, 2009 1:15 am
Profile
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post Re: A few coding questions
I don't know the variable for how far up and down an ACrab can aim, but there is a variable for it.
ACrabs can only have one weapon, no arms, four legs. Once the turret is shot off, it's pretty much useless.
Actors can have many weapons, two arms, two legs. Once the main hand is shot off, it's pretty much useless, though you can jetpack into stuff and potentially use the offhand weapon you already had.


Mon Sep 14, 2009 2:00 am
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: A few coding questions
AimRange is the variable.

And it's more correctly AHumans and ACrabs, Actor is a nonspecific parent class (see: brain) that's typically limbless.


Mon Sep 14, 2009 2:05 am
Profile
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post Re: A few coding questions
Whoops, meant to type that. AHumans, as Grif said.


Mon Sep 14, 2009 2:08 am
Profile

Joined: Mon Sep 14, 2009 12:49 am
Posts: 2
Reply with quote
Post Re: A few coding questions
I guess that means i have to make specialized drones. Oh well, that will be fun anyway.

Thanks for replying. :grin:

Uh... what is the unit for AimRange, is it degrees? would setting it to 180 give me full rotation?

Also, what kind of things can you put into the jump thing?, i'm thinking grappling hook.


Mon Sep 14, 2009 2:29 am
Profile
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post Re: A few coding questions
There's both radians and degrees strewn about ini scripting, though I'd imagine it's degrees on both sides of the horizontal. You can always try 3.14 and see if it's horribly small.


Mon Sep 14, 2009 3:27 am
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: A few coding questions
AimRange is in radians, with 0 being no aim (strictly horizontal). It's also aligned to the world, not the unit in question.

Deleting it entirely should give you entirely free aiming, as well.


Mon Sep 14, 2009 4:12 am
Profile

Joined: Sat Jan 13, 2007 11:04 pm
Posts: 2932
Reply with quote
Post Re: A few coding questions
Grif wrote:
AimRange is in radians, with 0 being no aim (strictly horizontal). It's also aligned to the world, not the unit in question.

Deleting it entirely should give you entirely free aiming, as well.


And setting it over 1.0 will make you aim past the directly down and directly up limits. The ronin Mia has this.


Mon Sep 14, 2009 7:57 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 8 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.098s | 13 Queries | GZIP : Off ]