View previous topic :: View next topic |
Author |
Message |
SoulReaver
Joined: 15 May 2004 Posts: 162
|
Posted: Sat Oct 21, 2006 6:24 pm Post subject: Console: can they just be destroyed/created |
|
|
Hello,
This is mainly a question. Ingame, can you jsut destroy a console owned by a player when you feel for it, like wouldnt it hurt if i destroy a console and replace it with another (or even a couple of times in the same map)?
Regards,
-SR _________________ Before asking, try the Unreal wiki here.
------------------------------
New UT3 Community site. |
|
Back to top |
|
|
SoulReaver
Joined: 15 May 2004 Posts: 162
|
|
Back to top |
|
|
Zelk0wy[PL]
Joined: 19 Apr 2006 Posts: 110 Location: War Saw, Poland
|
Posted: Wed Oct 25, 2006 3:19 pm Post subject: |
|
|
I'm not a specialist in this. ( :p ) but I don't think so.
Each user has a specified console - it's specified in his Unreal.ini file.
Code: | [Engine.Engine]
GameRenderDevice=SoftDrv.SoftwareRenderDevice
AudioDevice=Galaxy.GalaxyAudioSubsystem
NetworkDevice=IpDrv.TcpNetDriver
Console=Engine.Console
Language=int
GameEngine=Engine.GameEngine |
It seems to me that the only way to change the console is to edit the Unreal.ini file of the player to change the console specification.
It's seems not to be an object that you can just destroy in game. _________________ Beware the lollipop of mediocrity - lick it once and you suck forever.
|
|
Back to top |
|
|
SoulReaver
Joined: 15 May 2004 Posts: 162
|
Posted: Wed Oct 25, 2006 6:36 pm Post subject: |
|
|
Not exactly,
A console is created on playerpawn.player.console, but its an object, not an actor.
So destroy() will not work, neither will spawn().
I think changing it ingame is possible.
Regards,
-SR _________________ Before asking, try the Unreal wiki here.
------------------------------
New UT3 Community site. |
|
Back to top |
|
|
Hyper
Joined: 24 Jan 2004 Posts: 1227 Location: Middelburg, The Netherlands
|
Posted: Thu Oct 26, 2006 9:11 am Post subject: |
|
|
I don't know how, but I do know this is a tricky operation. You might want to ask Smartball / Zombie. But whatever you do, please respect the players Unreal client. I've seen more servers that tamper with consoles and other client-side objects. Smartball and Zombie (EDM5 and JCoopZ) can now successfully replace the console, but in the beginning EDM caused me headache with a buggy console replacement.
Destroying a console is not a good thing because it is quite essential for gameplay, especially in coop.
So what do you actually plan to perform? _________________ Alter your reality...forever.
Hyper.nl Unreal Services
unreal://hypercoop.tk |
|
Back to top |
|
|
Zelk0wy[PL]
Joined: 19 Apr 2006 Posts: 110 Location: War Saw, Poland
|
Posted: Thu Oct 26, 2006 1:27 pm Post subject: |
|
|
If you want to get rid of a player using an unwanted console u can just get him auto-kicked if package veryfier detects the console's file in his client. _________________ Beware the lollipop of mediocrity - lick it once and you suck forever.
|
|
Back to top |
|
|
SoulReaver
Joined: 15 May 2004 Posts: 162
|
Posted: Thu Oct 26, 2006 3:59 pm Post subject: |
|
|
This is mainly a test, i do not have any plans with it futher (yet?), but.
I know replace consoles i tricky. but if you would look at a bit on this side:
Create new console,
Set new console to player,
Destroy old one.
In codeform.
Code: | newcon = New() 'Newconsole.newconsole';
oldcon = playerpawn.player.console;
Playerpawn.player.console=newcon;
|
Somewhere in the style of this. And yes i know above code wont work.
I already considered asking Smartball or Zombie, but i know Zombie is active here so i tought he would respond sooner or later.
And it doesnt seem Smartball is very active on his forum lately, if Zombie wont respond then ill email Smartball. I know him from the past. :p
Regards,
-SR _________________ Before asking, try the Unreal wiki here.
------------------------------
New UT3 Community site. |
|
Back to top |
|
|
Bane
Joined: 10 Sep 2006 Posts: 3
|
Posted: Mon Oct 30, 2006 3:37 pm Post subject: |
|
|
// The actor this player controls.
var transient const playerpawn Actor;
var transient const console Console;
Thats in Player.uc, and thats your problem right there. You can't assign const variables in UScript. If you could, however, all you need to do to destroy the console is remove ALL object references to it. Just changing the player console might do it, I can't think of any other places where it would be referenced. |
|
Back to top |
|
|
|