Main

Forums

Wiki

Downloads

Tutorials

Walkthrough

Unreal-netiquette

Links

Submit-News

Oldunreal's hosted:
UnrealReference

Usermaps

Real-CTF

Donate for Oldunreal:

Oldunreal Donation
Oldunreallogo
  Welcome, Guest. Please Login or Register
 
  HomeHelpSearchLoginRegister  
 
 
Pages: 1 2 
How to shrink player/pawn (Read 5276 times)
スマイル・ドラゴン
God Member
*****
Offline


『smile。。。』

Posts: 936
San Diego, CA
Gender: male
Re: How to shrink player/pawn
Reply #20 - 12/21/09 at 23:17:57
 
Shivaxi wrote on 12/21/09 at 18:22:53:
You can always do this without mods, and just some simple commands, like:

admin set playerpawn collisionheight #
admin set playerpawn collisionradius #

Tongue


Do you have any idea how many times I've crashed the server and clients doing that? Do you not know the fuc
king meaning of "const" and "native"...?
THOSE SHOULD ONLY BE CHANGED BY THE SETCOLLISIONSIZE() FUNCTION!!!!!!!!!!!

Back to top
 

“I am the dragon without a name.”
WWW WWW スマイル・ドラゴン RukarioGyiyg996  
IP Logged
 
[§Ŕ] ŤhěxĐâŕkśîđěŕ
Oldunreal MasterPoster
******
Offline


「エレクトロマスター」

Posts: 4444
Out of space-time continuum
Gender: male
Re: How to shrink player/pawn
Reply #21 - 12/22/09 at 16:18:54
 
I didn't even know it's possible to change collision like that...

But this would be possible I guess:

Code:
class Bullshit expands Pickup;

replication
{
	reliable if (Role < ROLE_Authority)
		SetCollision;
}

exec function SetCollision (class C, float Radius, float Height)
{
	local Actor A;
	foreach AllActors (C, A)
		A.SetCollisionSize (Radius, Height);
} 



Just not sure about the replication though. lol
Back to top
 

WWW WWW [§Ŕ] ŤhěxĐâŕkśîđěŕ  
IP Logged
 
Bleeder91[NL]
God Member
*****
Offline


Personal Text:

Posts: 784
Location, Location, Location.
Gender: male
Re: How to shrink player/pawn
Reply #22 - 12/22/09 at 18:36:24
 
Code:
native(262) final function SetCollision( optional bool NewColActors, optional bool NewBlockActors, optional bool NewBlockPlayers ); 


already in use Tongue
Back to top
 
WWW WWW Bleeder91[NL]  
IP Logged
 
[§Ŕ] ŤhěxĐâŕkśîđěŕ
Oldunreal MasterPoster
******
Offline


「エレクトロマスター」

Posts: 4444
Out of space-time continuum
Gender: male
Re: How to shrink player/pawn
Reply #23 - 12/22/09 at 18:48:01
 
lol

But yeah, then use like SetCollisionWtf or something.
Back to top
 

WWW WWW [§Ŕ] ŤhěxĐâŕkśîđěŕ  
IP Logged
 
Shivaxi
Oldunreal MasterPoster
The One Who Wanted To Have A Special Title In Forum
******
Offline


Loving Pie

Posts: 2135
BEHIND U!!!
Gender: male
Re: How to shrink player/pawn
Reply #24 - 12/23/09 at 18:45:24
 
スマイル・ドラゴン wrote on 12/21/09 at 23:17:57:
Shivaxi wrote on 12/21/09 at 18:22:53:
You can always do this without mods, and just some simple commands, like:

admin set playerpawn collisionheight #
admin set playerpawn collisionradius #

Tongue


Do you have any idea how many times I've crashed the server and clients doing that? Do you not know the fuc
king meaning of "const" and "native"...?
THOSE SHOULD ONLY BE CHANGED BY THE SETCOLLISIONSIZE() FUNCTION!!!!!!!!!!!




Well excuse me...no I don't know how many times you've crashed clients doing this...because I myself use these commands ALL the time, single player AND on my server...works completely fine...never crashed anyone...nor the server.

Do not yell at me without a valid reason...at least provide some proof before you go on a tangent.
Back to top
« Last Edit: 12/23/09 at 18:45:50 by Shivaxi »  

...  ...
WWW WWW Shivaxi 350876527 Shivaxi13 Shivaxi  
IP Logged
 
Leo_T_C_K
Oldunreal MasterPoster
******
Offline



Posts: 1310
Gender: male
Re: How to shrink player/pawn
Reply #25 - 12/23/09 at 22:21:56
 
I think he means official stuff, not 227 at 227 it might not crash...
Back to top
 
 
IP Logged
 
Pcube
Ex Member


Re: How to shrink player/pawn
Reply #26 - 12/27/09 at 19:24:51
 
Const is only a compile-time construct and has no effect on whether the variable can or should be changed at run time. In other words, const is just there as a reminder to yourself, the coder, that you're "not supposed to" change its value directly. There's nothing special about Native other than it looks up the appropriate API function from its associated DLL with some offset. Last I checked, CollisionSize and CollisionHeight are not native, and I've set collision variables manually with set for several years now with no problems.

So yes, Shivaxi is valid in saying that a couple set commands would also work.
Back to top
 
 
IP Logged
 
Shivaxi
Oldunreal MasterPoster
The One Who Wanted To Have A Special Title In Forum
******
Offline


Loving Pie

Posts: 2135
BEHIND U!!!
Gender: male
Re: How to shrink player/pawn
Reply #27 - 02/16/10 at 14:36:18
 
Quote:
Const is only a compile-time construct and has no effect on whether the variable can or should be changed at run time. In other words, const is just there as a reminder to yourself, the coder, that you're "not supposed to" change its value directly. There's nothing special about Native other than it looks up the appropriate API function from its associated DLL with some offset. Last I checked, CollisionSize and CollisionHeight are not native, and I've set collision variables manually with set for several years now with no problems.

So yes, Shivaxi is valid in saying that a couple set commands would also work.


Gracias
Back to top
 

...  ...
WWW WWW Shivaxi 350876527 Shivaxi13 Shivaxi  
IP Logged
 
Pages: 1 2 
(Moderator: Smirftsch)