home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


Pusher

by BuRnItDoWn on 10/05/2009 22:23, 14 messages, last message: 10/06/2009 12:55, 2159 views, last view: 04/26/2024 18:08

For the next edition, would it be possible to code a Pusher ent, like in BF? I like them both, but it would be cool to put one in Sauer, especially if you can tilt it. Intant man cannon, anyone?

Wow, 1x4=4.

   Board Index   

#1: you can already do that.

by Blarget2 on 10/06/2009 00:50

1. make a jumppad. /newent jumppad 50
2. change the values. press period and use arrow keys to select values.
3. it should look like this...
jumppad 50 44 0 0 0 OR 50 -44 0 0 0

fiddle around with the numbers to make diffrent directions.(44 is a normal slant direction.)



8x7? oh 56 lol

reply to this message

#2: ..

by BuRnItDoWn on 10/06/2009 02:25

That's not quite the same. The Pusher seems more gentle, like a gravlift, while the jumppad is a sudden shot in one direction.

3+4=7

reply to this message

#3: Re: ..

by |ice|sub-zero|L on 10/06/2009 02:28, refers to #2

You do relize that Sauerbraten is a fast actioned fragging game and thus something slowish or even meduim speed does not quite fit into the game, right?

reply to this message

#4: ..

by BuRnItDoWn on 10/06/2009 02:43

I do. But, a pusher could make sense in that it makes it easier to shoot people when going up, and it could be used kind of like an elevator in MP.

3+2=5

reply to this message

#5: Re: ..

by |ice|sub-zero|L on 10/06/2009 02:50, refers to #4

many people have brought that up, but three things you have to think about.
1. maybe an elevator will be placed in, and thus this idea is pointless.
2.its a fast actioned game, and if you are able to shoot people like that then surly they'll be able to shoot back.
3. lots people have already talked about a elevator in MP, so bringing it up is pointless...

next time please review the threads before posting one that brings up something that we have already talked about...

9+8=17

reply to this message

#6: ..

by BuRnItDoWn on 10/06/2009 03:28

I was just using an elevator as one use. Also, a Pusher could make a map much more difficult, as you go slower in some parts, therefore you are more susceptible to getting shot. Also, you could make Pushers go to more valuable equipment, such as the Quad and Yellow Armor, so it would be a risk/reward thing.

6x2=12

reply to this message

#7: Re: ..

by |ice|sub-zero|L on 10/06/2009 03:44, refers to #6

again, its a fast actioned game, what part of that are you not getting?

9 x 8-72

reply to this message

#8: ..

by BuRnItDoWn on 10/06/2009 03:58

I understand that, but as I said, it could be a risk/reward thing. You move slowly in a fast-paced game, buy you gey something like the Quad after.

1+2=3

reply to this message

#9: Re: ..

by tentus_ on 10/06/2009 04:14, refers to #8

I added a pusher ent in Cube Legends some years ago.

<quote from="tentus_ on 11/30/2007 06:56">

I did some digging in the CL source, and found the code that made the pusher ent work, in entities.cpp, right after the jumppad. Here's what we had (bear in mind, this was the Cube 1 engine, and last edited in December of 2005):

case PUSHER:
{
static int lastpush = 0;
if(lastmillis-lastpush<100) break;
lastpush = lastmillis;
vec v = { (int)(char)ents[n].attr3/20.0f, (int)(char)ents[n].attr2/20.0f, ents[n].attr1/20.0f };
if(v.x<0 && player1->vel.x>v.x || v.x>0 && player1->vel.x<v.x) player1->vel.x=(player1->vel.x+v.x);
if(v.y<0 && player1->vel.y>v.y || v.y>0 && player1->vel.y<v.y) player1->vel.y=(player1->vel.y+v.y);
if(v.z<0 && player1->vel.z>v.z || v.z>0 && player1->vel.z<v.z) player1->vel.z=(player1->vel.z+v.z);
break;
};

</quote>

This was the 5th result in my search, btw.

reply to this message

#10: ..

by BuRnItDoWn on 10/06/2009 04:28

Nice.

2x3=6

reply to this message

#11: Re: ..

by Hirato Kirata on 10/06/2009 08:50, refers to #9

perhaps the following might work better...

case PUSHER:
{
vec v = vec(e.attr3, e.attr2, e.attr1);
v.mul(10.0f * curtime / 1000.0f);
d->vel.add(v);
break;
}

reply to this message

#12: Re: ..

by Hirato Kirata on 10/06/2009 08:52, refers to #11

and I just made that up on the spot, so no guarantees on not having to change anything to get things working

and this completely ignores adding the appropraite items in the various arrays and enums with entities.cpp and game.h

and as it has been said a few times; we're not here to hold your hand :P

reply to this message

#13: ..

by Quin on 10/06/2009 10:14

BF pusher entities are basically jumppads with a slight variation; they apply forces conditionally, and can do so with adjustable (and optionally power ramp though) radius. This is what makes them feel "softer".

http://bloodfrontier.svn.sourceforge.net/viewvc/bloodfrontier/src/game/entities.cpp?revision=4267&view=markup#l_733

reply to this message

#14: ..

by BuRnItDoWn on 10/06/2009 12:55

Wow... I'll need to take a look at that after school... I'm going to try to get the code working, but when it comes to modding, I kind of fail at anything beyond making red blue and blue red, so I'll check the Docs.

6+2=8

reply to this message

   Board Index   


Unvalidated accounts can only reply to the 'Permanent Threads' section!


content by Aardappel & eihrul © 2001-2024
website by SleepwalkR © 2001-2024
53862692 visitors requested 71637785 pages
page created in 0.014 seconds using 10 queries
hosted by Boost Digital