Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - QwazyWabbit

Pages: [1] 2 3 4 5 6 7 8 9 10 11 ... 84
1
Politics / Re: Current Politics & History Only Thread
« on: April 05, 2020, 06:16:08 PM »
There is a HUGE difference between chloroquine phosphate and hydroxychloroquine sulfate and if Trump can’t explain that difference he is not qualified to talk on the subject. You can kill yourself with both. If you don’t know the difference yourself then you are not qualified to prescribe it for anyone but if you want to take Trump’s advice and “do what you want” then by all means, kill yourself. MAGA.

I won’t weep for you.

3
Politics / Re: Novel Coronavirus (COVID-19) Thread
« on: March 27, 2020, 06:29:10 PM »
If his phone battery was dead, how did he know four units called him.
If they contacted him by landline, why did the police need to knock on his door?

4
Politics / Re: Current Politics & History Only Thread
« on: March 24, 2020, 10:21:10 AM »
Open handouts to the banks and loans to automobile manufacturers wasn't a problem in 2008, why would it be a problem in 2020?

5
https://github.com/QwazyWabbitWOS/lmctf60.git

This code is based on the archive recovered by the team at https://www.lmctf.com/index.htm

I've cleaned it up and brought the code up to more current usage per ISO C11 and it now compiles without warnings or errors on Linux, Windows and OSX on Visual Studio 2019, GCC and clang. The code in the original ZIP has a gravity tweak that didn't appear to have a logical reason but I left the code in place and added a macro to turn it on if some really wants it that way. See my discussion in the issues tab for the repository, Issue #1.

Linux admins: git clone https://github.com/QwazyWabbitWOS/lmctf60.git
then
make (for x86_64 build)
or setarch i386 make (for i386)

Copy/rename the binary as needed.

Warning to Windows  VS2019 users: The project is currently set to build straight into the c:\quake2\lmctf folder for debugging purposes so be sure to backup your older gamex86 binaries before building this. When switching from Debug to Release builds, be sure to do a Rebuild solution to fully build the objs and binary.

Q2admin users, rename the binary to gamex86.real.dll or gamei386.real.so to allow q2admin to cascade to it.

Modders: If you make changes, please fork the repo and post pull requests so I can keep it current. Thanks.

QW

6
Politics / Re: Current Politics & History Only Thread
« on: March 24, 2020, 07:31:08 AM »
Interesting, if true, the remarks here about how the measure had bipartisan support until 'leadership' stepped in to throw a wrench in the works:


https://twitter.com/ReaganBattalion/status/1242141596541427713

Yep. For once, some REAL shit was going to get done quickly. Then Tweedle Dee and Tweedle Dumb Cunt march in and tell their crew to change their votes. God damn, I wish she'd just dry up and blow away already. :frustration:

But then there's the $500 Billion (yes, with a B) slush fund to be doled out IN SECRET to corporations by Mnuchin without oversight (Trump: "I'll be the oversight.") so a secret committee of WH people can choose who gets the money to keep their companies afloat, without restrictions on how they spend it. No crony socialism there at all, nope, not one bit.

7
Politics / Re: Novel Coronavirus (COVID-19) Thread
« on: March 23, 2020, 11:13:52 AM »
There's an easy fix for that attitude if the boss has the balls for it.
1. Employees will not be permitted to enter the workplace unless you aren't running a fever.
2. Your temperature will be taken at the door prior to your entry to any company facility.
3. If you are running a fever you will be ordered to work from home or take sick leave with doctor certification that you are ill.
4. IT department will set up your remote access.
If your job cannot be performed remotely you will be placed on sick leave until cleared by your doctor.
5. If you refuse to allow your temperature to be taken for any reason you be terminated for cause.
6. Employees shall maintain 2 meters personal distance at all times while the national emergency is in effect.
7. Employees violating safe practices as established by company policy will be terminated for cause.
8. No exceptions will be granted regardless of age, sex, race or other factors.

8
0x1337c0de / Toward a better DoRespawn
« on: March 22, 2020, 04:20:47 AM »
Every time I had to look at DoRespawn it always annoyed me to see these lines in it:

Code: [Select]
for (count = 0, ent = master; ent; ent = ent->chain, count++)
;

and

Code: [Select]
for (count = 0, ent = master; count < choice; ent = ent->chain, count++)
;

The crazy comma operators and the dangling semicolon always pressed my WFT button.

Since my age and health conditions make it dangerous for me to venture forth into the dirty world of Coronavirus infestations and since zombie-making infection carriers are indistinguishable from normal humans unless you have infrared vision to spot the fevers, I am confined to my home for the weekend, doing my part to flatten the curve and save the world. I was "essential personnel" Friday and I will be again Monday but once I solve one problem Monday I will be back to saving the world by not participating in it.

So I decided to focus on this one function in Q2 mods called DoRespawn. This is the "Think" function that gets triggered when it's time to respawn items like armor shards, armor jackets, weapons, health boxes and pills, megas, etc. Anything that gets picked up and needs to be respawned after a scheduled time period.

Modern C has different rules than it did back in the days of the creation of Q2 and Microsoft Visual C++ of 1997. Some idioms remain but the particular idiom used by Zoid just makes a code maintainer stop and say "Oh? Hmmmm." Modern C compilers are also better at optimizing code so it's not necessary to resort to idioms in an attempt to make the code faster. Succinct C is not necessarily efficient C.

So here's a fix for the most basic version of DoRespawn with the idiomatic syntax removed and some error checking and reporting in place and some coverage for cases of null pointer dereference. Some versions have more code in place to take various actions on respawn but my primary goal was to refactor the for loops into something more easily understood at a glance and to maintain.


Code: [Select]
void DoRespawn(edict_t* ent)
{
if (ent == NULL)
{
gi.dprintf("NULL ent passed to %s\n", __func__);
return;
}

if (ent->team)
{
edict_t* master;
unsigned count;
unsigned choice;

master = ent->teammaster;
if (master == NULL)
return;

count = 0;
for (ent = master; ent; ent = ent->chain)
count++;

assert(count != 0);
choice = rand() % count;

count = 0;
for (ent = master; count < choice; ent = ent->chain)
count++;
}

if (ent)
{
ent->svflags &= ~SVF_NOCLIENT;
ent->solid = SOLID_TRIGGER;
gi.linkentity(ent);

// send an effect
ent->s.event = EV_ITEM_RESPAWN;
}
}

QW

9
Politics / Re: Novel Coronavirus (COVID-19) Thread
« on: March 19, 2020, 07:19:50 AM »
It’ll never fly. It doesn’t talk about him and it’s more than two paragraphs.
No pictures and it doesn’t have a cone in Louisiana.

10
Politics / Re: Current Politics & History Only Thread
« on: March 18, 2020, 05:30:43 AM »
Possible scenario: Biden - Gabbard ticket defeats Trump - Pence
Biden dies after contracting pneumonia after inauguration speech.
Tulsi Gabbard becomes first woman president.

11
Politics / Re: Novel Coronavirus (COVID-19) Thread
« on: March 17, 2020, 01:48:57 PM »
You know you can take him at his word. He has donkeys and ponies in his kitchen.  :yessign:

12
Politics / Re: Novel Coronavirus (COVID-19) Thread
« on: March 15, 2020, 04:48:27 AM »
The deep nerd dive. With graphics.
When people aren’t sufficiently worried that’s when you should worry.


https://youtu.be/Kas0tIxDvrg

13
Politics / Re: Novel Coronavirus (COVID-19) Thread
« on: March 14, 2020, 02:34:09 AM »
Some U.S. stats here:

https://www.worldometers.info/coronavirus/country/us/


We passed 2000 confirmed cases today (which will be a tiny fraction of the total, since we have been only testing those with the most severe symptoms.) [Can probably multiply by 100 to be closer to actual cases.]

But we had passed 1000 cases just 3 days ago!



We've been at practically x=y on a log scale since the beginning of March.  :ubershock:


[Edit: Well it's not quite x=y, but, damn.]

It’s always exponential, it all comes down to what the value of y is. If y = 2 it doubles every day. It’s probably closer to y = 2/3 but that’s just a guess.


15
I downloaded them but have not had time to test them yet.

Pages: [1] 2 3 4 5 6 7 8 9 10 11 ... 84