Alcohol

The best and quickest support by a group of top-notch editing specialists, guaranteed!

Moderator: Forum Guards

Alcohol

Postby Snakey » Fri Jun 19, 09 7:25 pm

Is there a way to make a class that has the same effect as alcohol, except with a different texture to the standard DrunkFX?
<center>

Image
User avatar
Snakey
Alpha
 
Posts: 3926
Joined: Wed Mar 30, 05 7:09 pm
Location: Wales

Postby Shinobi » Fri Jun 19, 09 7:40 pm

Use DEED to extract the texture files, and build your own class with desired effects, but make sure it points to a new .utx file you've made.

E.G.
You wanted to replace DrunkFX with Biocell effect tex, you'd extract all utx files from original, substitue DrunkFX for favourite tex, rebuild using a unique, memorable name, then replace DrunkFX with the texture of your choice (the one you added to your new class).

I'm shite at explaining this sorta thing, try http://tack.planetdeusex.gamespy.com <---- Tack's lab.
Last edited by Shinobi on Fri Jun 19, 09 7:41 pm, edited 3 times in total.
So we beat on, boats against the current, borne back ceaselessly into the past.
User avatar
Shinobi
Master
 
Posts: 1503
Joined: Tue Jul 10, 07 12:10 pm
Location: Wales

Postby Shinobi » Fri Jun 19, 09 7:42 pm

So we beat on, boats against the current, borne back ceaselessly into the past.
User avatar
Shinobi
Master
 
Posts: 1503
Joined: Tue Jul 10, 07 12:10 pm
Location: Wales

Postby Snakey » Fri Jun 19, 09 8:20 pm

I've got no problems with the textures, I just don't know how to get it right coding wise as the Drunk effect appears to be part of DeusExPlayer and I don't know how to make my own.
<center>

Image
User avatar
Snakey
Alpha
 
Posts: 3926
Joined: Wed Mar 30, 05 7:09 pm
Location: Wales

Postby Snakey » Fri Jun 19, 09 9:55 pm

Nevermind, got it sorted.
<center>

Image
User avatar
Snakey
Alpha
 
Posts: 3926
Joined: Wed Mar 30, 05 7:09 pm
Location: Wales

Postby Spiderbot01 » Fri Jun 19, 09 11:15 pm

Whatcha doing Kyle?
<center>------</center><center>
Image</center>
<center>Image</center><
User avatar
Spiderbot01
Alpha
 
Posts: 5363
Joined: Wed Nov 30, 05 8:24 pm
Location: LONDON!!!!

Postby Snakey » Fri Jun 19, 09 11:57 pm

[A]ENKIDUDU wrote:Whatcha doing Kyle?


Making an LSD mod :oops:
Last edited by Snakey on Fri Jun 19, 09 11:58 pm, edited 1 time in total.
<center>

Image
User avatar
Snakey
Alpha
 
Posts: 3926
Joined: Wed Mar 30, 05 7:09 pm
Location: Wales

Postby Spiderbot01 » Sat Jun 20, 09 11:59 am

Nice.
<center>------</center><center>
Image</center>
<center>Image</center><
User avatar
Spiderbot01
Alpha
 
Posts: 5363
Joined: Wed Nov 30, 05 8:24 pm
Location: LONDON!!!!

Postby Shinobi » Sat Jun 20, 09 7:03 pm

Mmm... LSD mod and some colour LAMs from stargate mod....
So we beat on, boats against the current, borne back ceaselessly into the past.
User avatar
Shinobi
Master
 
Posts: 1503
Joined: Tue Jul 10, 07 12:10 pm
Location: Wales

Postby Snakey » Sun Jun 21, 09 6:42 pm

Hit a bit of an impasse ;_;
<center>

Image
User avatar
Snakey
Alpha
 
Posts: 3926
Joined: Wed Mar 30, 05 7:09 pm
Location: Wales

Postby Spiderbot01 » Sun Jun 21, 09 7:03 pm

How so.
<center>------</center><center>
Image</center>
<center>Image</center><
User avatar
Spiderbot01
Alpha
 
Posts: 5363
Joined: Wed Nov 30, 05 8:24 pm
Location: LONDON!!!!

Postby Snakey » Sun Jun 21, 09 7:41 pm

I cannae get it to work
<center>

Image
User avatar
Snakey
Alpha
 
Posts: 3926
Joined: Wed Mar 30, 05 7:09 pm
Location: Wales

Postby ~ô¿ô~Nobody~ » Wed Jun 24, 09 5:29 pm

Ah.. so you want to make the new player class for the drug effect thing...

Well.. I could suggest a mega hack, that would do the same without a newplayer class.. :oops:
Nobody is perfect...
------------------------------
Longc[A]t wrote:I still think Dae is a russian spambot.

~[A]Daedalus~ wrote:There will be a day when my patience goes away and you, along with all who rant with you, will get banned.

ô¿ô¥[GODZ]¥NOCHANC wrote:I can ban any one I want ANY time I want. You have no rights here.
User avatar
~ô¿ô~Nobody~
Alpha
 
Posts: 2520
Joined: Fri Dec 31, 04 3:20 pm
Location: Proclarush Taonas

Postby Snakey » Wed Jun 24, 09 6:00 pm

~ô¿ô~Nobody~ wrote:Well.. I could suggest a mega hack, that would do the same without a newplayer class.. :oops:


A mega hack you say? :o
<center>

Image
User avatar
Snakey
Alpha
 
Posts: 3926
Joined: Wed Mar 30, 05 7:09 pm
Location: Wales

Postby ~DJ~ » Thu Jun 25, 09 5:56 am

Simulated function?


:oops:
User avatar
~DJ~
Forum Super Hero
 
Posts: 3766
Joined: Tue May 22, 07 12:23 pm

Postby Snakey » Thu Jun 25, 09 5:10 pm

Tried using the DeusExPlayer class and editing the coding instead of creating a subclass, however it will not compile and I get the error message "Error, Type mismatch in '=', Line 11939"

Line 11939 contains the following code (Which I haven't done anything to or edited in the slightest);

Code: Select all
   PlayerTracker.AttachedPlayer = Self;


Any ideas?
<center>

Image
User avatar
Snakey
Alpha
 
Posts: 3926
Joined: Wed Mar 30, 05 7:09 pm
Location: Wales

Postby ~DJ~ » Thu Jun 25, 09 5:13 pm

wut, are you compiling DeusExPlayer again?


Well, that would be.... much harder....



you can just subclass, why do you need to change the code? :o
User avatar
~DJ~
Forum Super Hero
 
Posts: 3766
Joined: Tue May 22, 07 12:23 pm

Postby Snakey » Thu Jun 25, 09 5:15 pm

~DJ~ wrote:wut, are you compiling DeusExPlayer again?


Well, that would be.... much harder....



you can just subclass, why do you need to change the code? :o


The subclass isn't working and I'm a desperate man :smt120
<center>

Image
User avatar
Snakey
Alpha
 
Posts: 3926
Joined: Wed Mar 30, 05 7:09 pm
Location: Wales

Postby ~DJ~ » Thu Jun 25, 09 5:44 pm

Open with notepad, probably first open UeD, find the texture they use, press CTRL+F in the Notepad where the code is, and then copy the line or the whole function and add it to your subclass one.


Probably I can find and post it here, but later, me busy -_-
User avatar
~DJ~
Forum Super Hero
 
Posts: 3766
Joined: Tue May 22, 07 12:23 pm

Postby Snakey » Thu Jun 25, 09 5:58 pm

~DJ~ wrote:Open with notepad, probably first open UeD, find the texture they use, press CTRL+F in the Notepad where the code is, and then copy the line or the whole function and add it to your subclass one.


Probably I can find and post it here, but later, me busy -_-


This is what the subclass code looks like;

Code: Select all
//=============================================================================
// AcidPlayer.
//=============================================================================
class AcidPlayer extends DeusExPlayer;

#exec OBJ LOAD FILE=AcidTextures

// acid effects on the player
var float AcidEffectTimer;

simulated function AcidEffects(float deltaTime)
{
   local float mult, fov;
   local Rotator rot;
   local DeusExRootWindow root;

   root = DeusExRootWindow(rootWindow);

   // random wandering and swaying when drugged
   if (AcidEffectTimer > 0)
   {
      if ((root != None) && (root.hud != None))
      {
         if (root.hud.background == None)
         {
            root.hud.SetBackground(Texture'AcidTextures.Effects.Acid');
            root.hud.SetBackgroundSmoothing(True);
            root.hud.SetBackgroundStretching(True);
            root.hud.SetBackgroundStyle(DSTY_Modulated);
         }
      }

      mult = FClamp(AcidEffectTimer / 10.0, 0.0, 3.0);
      rot.Pitch = 1024.0 * Cos(Level.TimeSeconds * mult) * deltaTime * mult;
      rot.Yaw = 1024.0 * Sin(Level.TimeSeconds * mult) * deltaTime * mult;
      rot.Roll = 0;

      rot.Pitch = FClamp(rot.Pitch, -4096, 4096);
      rot.Yaw = FClamp(rot.Yaw, -4096, 4096);

      ViewRotation += rot;

      if ( Level.NetMode == NM_Standalone )
      {
         fov = Default.DesiredFOV - AcidEffectTimer + Rand(2);
         fov = FClamp(fov, 30, Default.DesiredFOV);
         DesiredFOV = fov;
      }
      else
         DesiredFOV = Default.DesiredFOV;

      AcidEffectTimer -= deltaTime;
      if (AcidEffectTimer < 0)
         AcidEffectTimer = 0;
   }
   else
   {
      if ((root != None) && (root.hud != None))
      {
         if (root.hud.background != None)
         {
            root.hud.SetBackground(None);
            root.hud.SetBackgroundStyle(DSTY_Normal);
            DesiredFOV = Default.DesiredFOV;
         }
      }
   }
}

defaultproperties
{
}
<center>

Image
User avatar
Snakey
Alpha
 
Posts: 3926
Joined: Wed Mar 30, 05 7:09 pm
Location: Wales

Postby ~DJ~ » Thu Jun 25, 09 6:02 pm

Extend to Human or JCDentonMale.


DeusExPlayer is messy, Human/JCDentonmale has all of the anim list, that's most of the mistakes some people do, you need to extend to Human.



And do it like this:-


class AcidPlayer extends Human
abstract
Config(User);





And then make other classes, like AcidJCDenton, and then add your code there, only thing you have to do is--


class AcidJCDenton extends AcidPlayer
abstract
Config(User);



AND UR CODE.



EDIT:


FIRSTLY, Back-up DeusEx.ini, User.ini


Now read below:



To get it working in MP..


You have to do lots of stuff.


Here, download the file, paste those in your classes folder.



And here's what you have to do.



Remove MTL, completly, if you have it.


remove from ServerPackages, and then delete/move all of the files somewhere else, including the INT, INI, etc etc, and then open your DeusEx.INI

and then on the top, you can see the MTL player thingie..


change it to:-

Class=YourMod.ACJCDenton




And then find...


[Engine.Engine]


change

DefaultGame=DXMTL152b.something
DefaultServerGame=DXMTL152b.something

to


DefaultGame=YourMod.ACGameInfo
DefaultServerGame=YourMod.ACDeathMatch



After that, open User.ini, at the top, change:

Class=DXMTL152b.MTLNSF

to

Class=YourMod.ACNSF




And now just host your DeathMatch game!
Attachments
snakey.rar
(2.56 KiB) Downloaded 256 times
Last edited by ~DJ~ on Thu Jun 25, 09 6:12 pm, edited 1 time in total.
User avatar
~DJ~
Forum Super Hero
 
Posts: 3766
Joined: Tue May 22, 07 12:23 pm

Postby Snakey » Thu Jun 25, 09 6:10 pm

So you're saying the code which extends Human should consist of

Code: Select all
class AcidPlayer extends Human
abstract
Config(User);


?
<center>

Image
User avatar
Snakey
Alpha
 
Posts: 3926
Joined: Wed Mar 30, 05 7:09 pm
Location: Wales

Postby ~DJ~ » Thu Jun 25, 09 6:13 pm

Read my post again, I've updated.
User avatar
~DJ~
Forum Super Hero
 
Posts: 3766
Joined: Tue May 22, 07 12:23 pm

Postby Snakey » Thu Jun 25, 09 6:19 pm

~DJ~ wrote:Read my post again, I've updated.


Yeah I did all that before, I can't remember what went wrong but it didn't work for some reason. That might've been before I had a gametype so I'll try the whole ordeal again.
<center>

Image
User avatar
Snakey
Alpha
 
Posts: 3926
Joined: Wed Mar 30, 05 7:09 pm
Location: Wales

Postby ~DJ~ » Thu Jun 25, 09 6:22 pm

You should, you can't just replace your player only, becase DXMTL gametype has something in there defaultproperties saying:


DefaultPlayer=MTLPlayer



sumthing liek that, so ye, in default gametype, it says JCDentonmale, you have no choices left rather than making a new gametpye :p
User avatar
~DJ~
Forum Super Hero
 
Posts: 3766
Joined: Tue May 22, 07 12:23 pm

Postby Snakey » Thu Jun 25, 09 6:24 pm

Also, the .rar doesn't contain ACPlayer

I'm guessing I won't be able to host this?
<center>

Image
User avatar
Snakey
Alpha
 
Posts: 3926
Joined: Wed Mar 30, 05 7:09 pm
Location: Wales

Postby ~DJ~ » Thu Jun 25, 09 6:26 pm

No, ACPlayer? wut?


If it's some error, do it AcidPlayer, take your own player instead of it.
User avatar
~DJ~
Forum Super Hero
 
Posts: 3766
Joined: Tue May 22, 07 12:23 pm

Postby Snakey » Thu Jun 25, 09 6:27 pm

ACUnatco is supposed to extend ACPlayer, but no such file exists
<center>

Image
User avatar
Snakey
Alpha
 
Posts: 3926
Joined: Wed Mar 30, 05 7:09 pm
Location: Wales

Postby ~DJ~ » Thu Jun 25, 09 6:27 pm

Oh, sorry, lol.

Do it AcidPlayer..


I forgot to replace.. :$



EDIT:



And your AcidPlayer SHOULD be extended in Human.


EDIT2:


Also, liek, I've added you in MSN, dan_wicked@hotmail.com is me, accept pl0x. :$
Last edited by ~DJ~ on Thu Jun 25, 09 6:30 pm, edited 2 times in total.
User avatar
~DJ~
Forum Super Hero
 
Posts: 3766
Joined: Tue May 22, 07 12:23 pm

Postby Snakey » Thu Jun 25, 09 6:31 pm

You mean do it exactly as you said, 'cept with AcidPlayer instead of ACPlayer, or just carry on with what I was doing originally?

I'll accept you next time I'm on :)
<center>

Image
User avatar
Snakey
Alpha
 
Posts: 3926
Joined: Wed Mar 30, 05 7:09 pm
Location: Wales

Next

Return to Editing issues

Who is online

Users browsing this forum: No registered users and 10 guests
cron