Page 1 of 1

Im Stuck In A Sticky Situation... Help Plz?

PostPosted: Tue Sep 25, 07 8:20 am
by Raiiiny
Im making a grenade
that sticks to pawns on impact
but it won't stick



Code: Select all
function ProcessTouch (Actor Other, Vector HitLocation)
{
    local plasmagrenade g;
    local Pawn apawn;

      g.bBounce = False;
      g.bProximityTriggered = False;
      g.bStuck = True;
      g.SetBase(apawn);
}


Any Ideas?

PostPosted: Tue Sep 25, 07 8:29 am
by Alex
Try this:

Code: Select all
function ProcessTouch (Actor Other, Vector HitLocation)
{
  local Pawn apawn;

  aPawn      = Pawn(Other);
  if(aPawn == None)
    return;

  bBounce = False;
  bProximityTriggered = False;
  bStuck = True;
  SetBase(apawn);
}


I assume you placed this code in the Grenade class? If you didn't, then this code wont work.

PostPosted: Tue Sep 25, 07 9:30 am
by Raiiiny
Yeah i did but it still won't stick :-k

Code: Select all
class PlasmaGrenade extends ThrownProjectile;

var float   mpBlastRadius;
var float   mpProxRadius;
var float   mpLAMDamage;
var float   mpFuselength;

function ProcessTouch (Actor Other, Vector HitLocation)
{
  local Pawn apawn;

  aPawn      = Pawn(Other);
  if(aPawn == None)
    return;

  bBounce = False;
  bProximityTriggered = False;
  bStuck = True;
  SetBase(apawn);
}

simulated function PreBeginPlay()
{
   Super.PreBeginPlay();

   if ( Level.NetMode != NM_Standalone )
   {
      blastRadius=mpBlastRadius;
      proxRadius=mpProxRadius;
      Damage=mpLAMDamage;
      fuseLength=mpFuselength;
      bIgnoresNanoDefense=True;
   }
}


Btw i tryed joining the scripting forums
but i can't find the botton to add myself :oops:

PostPosted: Tue Sep 25, 07 1:41 pm
by Alex
The Scripting Society used be to be available for everyone, everyone could join the usergroup, but now we have some strict 'rules'. I'm afraid we cant accept you yet, perhaps later.

PostPosted: Tue Sep 25, 07 9:03 pm
by Raiiiny
its all good. ](*,)
i just want to bring deus back to life its pretty much dead now,
noone plays anymore.
the way i see it,
if i get acouple new mpmaps unlike any others ever played
an i have a mod that changes the way deus is played to like deus/UT combined
ppl might start gettin back on

but um yeah if you have anymore ideas about gettin the grenade to stick
lemme know plz
i gotta get it to start working before i can finish
makin my new map.
i hate puttin a map together when
my mods for it arent complete or i feel unorganized

PostPosted: Wed Sep 26, 07 1:15 am
by Shinobi
Methinks TNAG is sufficient for bringing DX/UT together.

Besides - DX is a very different game from UT.

Same engine, different world...

PostPosted: Wed Sep 26, 07 2:25 pm
by Raiiiny
TNAG is def a good mod
but didn't you notice nobody uses it when they host?

its because alot of even the best modders make
the biggest mistake
dx weapons simply don't hit hard enough, an hardly seem powerful when you shoot them which kills your intrest
UT weapons seem to fake an hit too hard

but if you can make realistic weapons that hit a good happy medium damage
or maybe 2 dif classes of weapons like in halo
(human, an covenant guns)

like im making normal guns
which are accurate, instantly hit, an hit a med amount of damge
an then a second more advanced class of weapons
which shoot slower, are more powerfull an alittle less accurate
i also want to fix it so that your guns are louder,
an when you shoot a wall it spawns more smoke an fragments

as far as the world goes you can make some huge changes to the way the game is played
some of the most simple changes
make the biggest diffs like gravity, your walking speed, an the way the level is built
i might start a mario world level soon
an there won't really be any weapons in it but a flower which shoots
fire balls like a pistol, there will also be pipes that teleport you around the level,
and mushrooms that make you jump higher for a limited amount of time

PostPosted: Wed Sep 26, 07 2:33 pm
by Survive.
You Speak Sence

PostPosted: Wed Sep 26, 07 2:44 pm
by Raiiiny
yeah
hopefully after i get afew things together, an maybe some help
i'll have the next most popular server \:D/

PostPosted: Wed Sep 26, 07 3:57 pm
by Kaiden
Welcome to the forums anyway, sorry this is the first topic Iv'e read, youv'e probs get a intro topic somewhere!

Some nice ideas, goodluck with them!

PostPosted: Wed Sep 26, 07 4:30 pm
by Shinobi
Hehe - Ya'd better make a yoshi for us.

We want yoshi.

And castles.

And midget italians called luigi.

PostPosted: Wed Sep 26, 07 5:07 pm
by Raiiiny
Thx, im kind of new to the forums
an im not sure where to post anything,
there are sooo many topics lol

an thx again
i'll need all the luck i can get
i've put all my plans into actions an there coming along nicely
the only prob is im the only one workin on them an its taking ages
ive made mario pipe texture
an i'll have the bricks, grass, water, an skybox done today probly
althought i don't really want to finish workin on anything
till i get this dang sticky grenade to stick :typing:

Shinobi wrote:Hehe - Ya'd better make a yoshi for us.

We want yoshi.

And castles.

And midget italians called luigi.


you will be able to be a midget luigi, an there will most likely be a big castle
but since im not the best at meshing i can't promise you a yoshi lol

PostPosted: Wed Sep 26, 07 9:59 pm
by Shinobi
Calling all mesh-boffins:

I WANT A FUCKING YOSHI![/b]

PostPosted: Wed Sep 26, 07 10:01 pm
by Awesome
Code: Select all
function ProcessTouch (Actor Other, Vector HitLocation)
{

  if(Other.IsA('Pawn'))
  {
      SetPhysics('PHYS_None');
      bBounce = False;
      bProximityTriggered = False;
      bStuck = True;
      SetBase(Other);
  }
}

PostPosted: Thu Sep 27, 07 10:21 am
by Raiiiny
lol well i'll see
what i can do when i get to it :P


Thx for the code
but it won't compile because of this
for some reason

Code: Select all
SetPhysics('PHYS_None'); 

PostPosted: Thu Sep 27, 07 10:50 am
by Raiiiny
lol well i'll see
what i can do about yoshi for you when
i get to it :P


Thx for the code
but it won't compile because of this
for some reason

SetPhysics('PHYS_None');

PostPosted: Thu Sep 27, 07 11:16 am
by Alex
There is an Image button.

PostPosted: Thu Sep 27, 07 1:12 pm
by Shinobi
And on that note - no there isn't.

Well I an't got one anyway.

PostPosted: Thu Sep 27, 07 1:31 pm
by Raiiiny
Don't know if anyones intrested or not
but i made the textures for the pipes on my mario map

Image

an heres the new texture for my needler
but im not applying it to the one on my server yet since
its not finished
+ i still might just make a new mesh for it so yeah

Image

PostPosted: Thu Sep 27, 07 2:30 pm
by Shinobi
Nice!

Lovin' the pipes, matey!

PostPosted: Thu Sep 27, 07 3:51 pm
by Survive.
The pipes look decend.

Indeed :D

PostPosted: Thu Sep 27, 07 4:05 pm
by Shinobi
I still want a yoshi, though.

So you better not rest until I get my yoshi. Even though I don't know you and have never seen your server. Either way I'm having a yoshi.

Even if it means I have to learn to make meshes myself.

PS: How hard is it to make meshes?

PostPosted: Thu Sep 27, 07 8:00 pm
by ~[R2K]D-BLOCK~
Ye the pipes looks cool. 8)

PostPosted: Fri Sep 28, 07 2:10 am
by Raiiiny
ha thx im still
workin on everything but i def think im about to give up on the sticky grenade though since it won't work
an now im stuck on my paintball gun >.<



PS: How hard is it to make meshes?


um meshing isnt that hard
as long as you know what your doin
but i haven't meshed in awhile,
so i'll have to read
acouple tutorials when i get to it

PostPosted: Fri Sep 28, 07 5:40 am
by VodunLoas
I'm diggin this. :)

PostPosted: Fri Sep 28, 07 6:02 am
by ~¤Hit[+]Män¤~
kinda looks like a pocket pussy 8)

PostPosted: Fri Sep 28, 07 8:45 am
by Raiiiny
Im thinkin about makin the map
so that you start off with weak weapons, an the better weapons will be in certain areas
that take a set amount of lockpicks to get in, which you can only get by killing other players
like 3 for a 2 hit sniper,5 for a gep gun, 10 for an infinate medkit ect...
that way if your a good player you can get better shit
an the areas will be hidden all throughout the level

PostPosted: Fri Sep 28, 07 11:24 am
by Magus
... which will thus result in an imbalance as the best players get all the good gear and kill everyone else before they can get a foothold.

Ah well, at least you have ideas, which is more than most of us can say for ourselves.

PostPosted: Sat Sep 29, 07 2:42 am
by Kaiden
On a different note, is there something wrong with
your browser, or
do you just write like
this for the hell of it!? Hehe.

Yeah nice ..green pipe lol.

PostPosted: Sat Sep 29, 07 8:59 am
by Raiiiny
well see technicaly if one persons killin everyone to save up the lockpicks then they'll be the only one with good stuff
an everyone will team up on him, besides they have to die
sooner or later an someone weaker might get there stuff
i just think it'd be a nice change instead of starting off with everything
and its sorta like a dif lvling up system in asence almost like pking on runescape if you've
ever played

wait what about my browser? lol

haha thx :)
wait till you see the water for
my new map i'll put up pics when i finish my textures
for it an the sky box

also ive been wondering
but how come theres always people on the forums an noone ever on deus anymore?
i had around 13-17 ppl on my server yesterday
an i can't say i've seen anyone from the forums :-k