Icon of Sin / Baphomet
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Special Interest > Eternity > Recent EE Progress
 
Author
All times are GMT. The time now is 14:07. Post New Thread    Post A Reply
Quasar
Moderator


Posts: 4484
Registered: 08-00


Work continues slowly on the next version of EE, which will probably be shooting for a summer release (maybe earlier if linked portals are finished soon). I have just completed a conversion of all the player's weapon codepointers to use of the same prototype as codepointers for normal moving objects. This means, TADA, that there are no more problems with crashes via DeHackEd if you assign a weapon pointer to a monster, or a monster pointer to a weapon, or vice versa. In fact, amongst other things this enables, monsters can now successfully use the Saw codepointer, allowing the possibility of chainsaw zombies ;)

Please don't ask why it took me so long to think of such a simple and elegant solution to that nasty problem. It was staring me in the face for all these years.

Note however that this doesn't totally obsolete the old PlayerThunk pointer, which previously allowed use of a set of most of the pointers on weapons, because this pointer makes it possible to assign ammo usage and alter other properties of attacks in a way that makes them more useful.

Old Post 04-06-07 19:49 #
Quasar is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
DaniJ
Senior Member


Posts: 1691
Registered: 08-03


Nice work. Can I ask what solution you came up with? I've been working towards doing a similar thing in jDoom for 1.9.1 but atm I'm still working on routing out all the non-standard use of the mobj_t members (special, target etc).

Old Post 04-06-07 22:45 #
DaniJ is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Quasar
Moderator


Posts: 4484
Registered: 08-00


Well currently most of the player weapon pointers aren't really usable by monsters. The pointers take mobj_t *mo as a parameter, and check if(mo->player) before doing anything. The psprite pointer can be gotten from player_t -- I added a member to that struct called curpsprite which is set from P_SetPsprite before it calls the action function. It holds the index into the player's psprites array that the codepointer needs to manipulate (and not even nearly all the pointers need to manipulate the psprite -- the vast majority do not).

So it looks like this example in the end:
code:
void A_SomeGunPointer(mobj_t *mo) { player_t *player; psprite_t *psp; if(!(player = mo->player)) return; psp = &player->psprites[player->curpsprite]; // ... }

A few of the weapon pointers can work for monsters because they don't require any special fields from the player_t struct. The Saw pointer is one such, and I'm working on possible ways to make some of the others work too.

Old Post 04-07-07 16:51 #
Quasar is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
DaniJ
Senior Member


Posts: 1691
Registered: 08-03


Ah ok. Yeah, it does seem pretty obvious now you spell it out. Thanks.

Old Post 04-08-07 11:56 #
DaniJ is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
JoelMurdoch
Should know better by now


Posts: 656
Registered: 02-02


How are we doing with those updates you mention for my Spear of Destiny job - the slideshows and the enemies don't attack each other when shot? Remember I can provide code for the latter if you need it.

Old Post 04-12-07 04:09 #
JoelMurdoch is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Quasar
Moderator


Posts: 4484
Registered: 08-00


That stuff will be in the next release, though I must admit I have not quite gotten to it yet -- I've been addressing bugs in MapInfo, EDF, and trying to help esselfortium find out why the sound code crashes on his x86 Mac (which I have not yet done, btw -- if anyone else has this problem, I need to hear from you pronto).

Old Post 04-12-07 18:09 #
Quasar is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 14:07. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Special Interest > Eternity > Recent EE Progress

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Forums Directory