home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


General Thread

by Aardappel on 01/05/2002 01:55, 15527 messages, last message: 03/01/2024 13:02, 12522266 views, last view: 11/01/2024 20:28

for questions, announcements etc.

Go to first 20 messagesGo to previous 20 messages    Board Index    Go to next 20 messagesGo to last 20 messages

#11168: Re: Serverlist

by ~Redon~ on 08/21/2008 21:27, refers to #11167

*on another/not on the same -_- i should really read EVERY post before i submit it

reply to this message

#11169: Crouch function - coding problem

by Chameleon on 08/22/2008 01:19

Hi everybody !
I\'ve implemented a \"crouch\" and a \"walk\" function in the code of sauerbraten, something very simple:
(I\'ve also renamed \"jumpnext\" into \"jumping\")

It\'s half-working for the moment, the walk function is OK, but the crouch function is weird.
I\'ve binded crouch to C, so when I press C, the player is crouching, it\'s working pretty well, but when I pull back the key, the player break suddenly though the floor. Anyone got an idea ?
If I jump when crouching, the player come back to standing position normaly (after jumping).

ents.h:65
bool jumping, walking, crouching;

ents.h:96 reset()
crouching = walking = false;

ents.h:175 stopmoving()
k_left = k_right = k_up = k_down = jumping = crouching = walking = false;

physics.cpp:396-397
const float CROUCHHEIGHT = 8.0f;
const float STANDHEIGHT = 14.0f;


physics.cpp:1250-1273 moveplayer()
if(pl->crouching == false)
{
if(pl->walking == false)
{
pl->maxspeed = 60;
}
else
{
pl->maxspeed = 15;
}
pl->eyeheight = STANDHEIGHT;
}
else
{
if(pl->walking == false)
{
pl->maxspeed = 20;
}
else
{
pl->maxspeed = 10;
}
pl->eyeheight = CROUCHHEIGHT;
}


physics.cpp:1647-1648
ICOMMAND(crouch, \"D\", (int *down), player->crouching = *down);
ICOMMAND(walk, \"D\", (int *down), player->walking = *down);

reply to this message

#11170: Own Master Server

by ikbendeoceaan on 08/22/2008 04:40

I was wondering, how would I go about creating my own master server to go along with my total conversion like AC did?

Was just wondering if someone can give me some info on how Sauerbraten's master server works, what it consists of, and where is located(uploaded to).

I guess you can reply on here, or email me. Or add me on MSN at crank@gomoku-ms.com


Thank you.

reply to this message

#11171: Re: Crouch function - coding problem

by SheeEttin_ on 08/22/2008 05:07, refers to #11169

My guess is that when you stand up, it\'s not your head that moves up, it\'s your feet that move down (through the floor).
Try giving the player a bump for the difference between crouching and standing.

Be aware that the extent of my C++ experience is a rudimentary \"guess the number\" game, though. :P

reply to this message

#11172: Re: Crouch function - coding problem

by a~baby~rabbit on 08/22/2008 05:20, refers to #11171

Your eye position moves, but the question is: what do you look like to other players - or is your intention a SP mod?

reply to this message

#11173: Re: Crouch function - coding problem

by Chameleon on 08/22/2008 05:42, refers to #11172

My intention is to make a sp mod, and I will make new models with more animations later. For now, I want to implement a different game system, so I don't care if my model seems to be standing as long as you feel like crouching when you play.

reply to this message

#11174: Re: Crouch function - coding problem

by Quin on 08/22/2008 09:31, refers to #11169

http://bloodfrontier.svn.sourceforge.net/viewvc/bloodfrontier/src/fpsgame/physics.h?revision=HEAD

Might help point you in the right direction.

reply to this message

#11175: AC bots in Multiplayer

by Osax on 08/22/2008 09:43

How do you add bots in multiplayer on actioncube, when I try add bot it says I'm not allowed & how do you add it to the ded-server aswel?

reply to this message

#11176: Re: Crouch function - coding problem

by Chameleon on 08/22/2008 14:37, refers to #11174

Thanks, but I've already took a look at BloodFrontier's code, but their codes and game system are completly different from the original one.
But it's OK, I've solved my problem adding a "crouched" bool that gives the player a pulse just after releasing the crouch key:

...
bool jumping, walking, crouching, crouched;
...


...
if(pl->crouching == false)
{
if(pl->crouched)
{
pl->crouched = false;
pl->vel.z += 100.0f;
}
if(pl->walking == false)
{
pl->maxspeed = 60;
}
else
{
pl->maxspeed = 15;
}
pl->eyeheight = STANDHEIGHT;
}
else
{
pl->crouched = true;
if(pl->walking == false)
{
pl->maxspeed = 20;
}
else
{
pl->maxspeed = 10;
}
pl->eyeheight = CROUCHHEIGHT;
}

With that, it's working pretty nicely.
Thanks you all.
Feel free to use my code.

reply to this message

#11177: Screenshots

by Ninja*** on 08/22/2008 14:41

Hi!
My questions are:
1) How to make a screenshot for a map?
2) To what folder the screenshot is going?

reply to this message

#11178: Re: Screenshots

by Q009 on 08/22/2008 15:18, refers to #11177

1)Press F12 to make screenshot
2)Screenshot i sgoing to the main sauerbraten installatio folder

reply to this message

#11179: Re: Screenshots

by tentus_ on 08/22/2008 16:25, refers to #11177

Just a word of advice, when you make a screenshot (using F12 like Q009 suggested), use the commands
/hidehud 1
/hudgun 0
to clear up your screen. (Then use the opposite values to get the hud stuff back).

reply to this message

#11180: Re:Screenshots

by Ninja*** on 08/22/2008 18:15

I cant see the pics! I have Linux (Ubuntu 7,10). And i cant see my new map too. I searched the whole Sauer folder, but i didint find any pick or map that i have created (I searched the packages/base folder too).

reply to this message

#11181: Re: Serverlist

by -Redon- on 08/22/2008 18:17, refers to #11162

o.O the command "maxservpings" doesnt exist and i didnt find any similar commands

reply to this message

#11182: Re: Re:Screenshots

by tman_elite on 08/22/2008 19:35, refers to #11180

On linux, most files such as configs and custom maps will go in a hidden folder in your home directory ".sauerbraten". Hope this helps.

reply to this message

#11183: Re:Screenshots

by Ninja*** on 08/22/2008 19:51

Ty 4 Hlep :P

reply to this message

#11184: Re: Serverlist

by a~baby~rabbit on 08/23/2008 00:39, refers to #11181

ah... sorry, looks like that was a fairly recent addition to the code and isn't in the latest release.

As a workaround, regardless of what the server browser says, you can always just type "/connect <ip>" if you know the ip number of the server. To that end you may want to download CSL (cube server listener - it's mentioned in another forum thread). This is a separate program that tells you the status of all other games - with even more detail than the builtin server browser of sauerbraten.

reply to this message

#11185: Re: Serverlist

by yoopers on 08/23/2008 01:11, refers to #11184

On the subject of the server list, does anyone else ever have problems getting replies from all servers in the list? I update from master, get three pages of servers, but only the first page and one third reply, with the others stuck at "Waiting for response" indefinitely.

It's not a big deal for me, what with CSL and having my favorite servers bound, but it would be nice to understand why it's occurring.

reply to this message

#11186: Message censored by administrator

by {Qs}Homicidal on 08/23/2008 05:12, refers to #11179

#11187: Re: Serverlist

by SheeEttin on 08/23/2008 05:36, refers to #11185

Happens to me too. Probably normal.
Could be servers that have gone down since being registered but haven't been removed yet, or something.

reply to this message

Go to first 20 messagesGo to previous 20 messages    Board Index    Go to next 20 messagesGo to last 20 messages


Post a Message

Username

Email

Subject

Body

7 multiplied by 7 is?


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