logo
Main

Forums

Downloads

Unreal-Netiquette

Donate for Oldunreal:
Donate

borderline

Links to our wiki:
Wiki

Walkthrough

Links

Tutorials

Unreal Reference

Usermaps

borderline

Contact us:
Submit News
Page Index Toggle Pages: [1] 2  Send TopicPrint
Very Hot Topic (More than 25 Replies) How to shrink player/pawn (Read 15950 times)
Psychomorph
Ex Member


How to shrink player/pawn
Dec 15th, 2009 at 3:55am
Print Post  
Hello,

I like to play U4E as a big guy (warlord), he's to large for many areas to enter though, and can't spawn in some maps. I heared there is a mutator that allows to shrink the player (not shrinker gun, but to shrink yourself), do you know where to grab one?
Leo said rolands rtnp something had this. I need a separated mutator, though.
  
Back to top
 
IP Logged
 
スマイル・ドラゴン
Betatester
Offline


『smile。。。』

Posts: 1236
Location: Independence, KS
Joined: Feb 10th, 2008
Gender: Male
Re: How to shrink player/pawn
Reply #1 - Dec 15th, 2009 at 8:47pm
Print Post  
Either get a item like the "BigBelt" from Pack5 (or was it 4 or 6?) Or make a custom playerpawn class with the following, be sure to take the animation code off MCoop2 or you will have problems.

Mesh LodMesh'UnrealI.WarlordM'
DrawScale 0.500000
CollisionHeight 39.000000
CollisionRadius 17.000000
  

I am the dragon without a name.
rk-__-ght.: / κυνικός Δράκων / スマイル・ドラゴン / Draco Nihil
Back to top
IP Logged
 
Leo T_C_K
Betatester
Offline



Posts: 1968
Joined: Aug 27th, 2005
Gender: Male
Re: How to shrink player/pawn
Reply #2 - Dec 15th, 2009 at 8:52pm
Print Post  
Quote:
Hello,

I like to play U4E as a big guy (warlord), he's to large for many areas to enter though, and can't spawn in some maps. I heared there is a mutator that allows to shrink the player (not shrinker gun, but to shrink yourself), do you know where to grab one?
Leo said rolands rtnp something had this. I need a separated mutator, though.

Yeah...but you can grab the code from there, that is I think you should maybe ask for permission to the guy who made it (I forgot who made it for Roland), or just simply credit him.
The download is:
http://www.rolandunreal.ismywebsite.com/unreal/files/UnrealRTNP225.exe
  

People who accuse others of trolling are usually the biggest trolls themselves.
Back to top
YouTube  
IP Logged
 
Leo T_C_K
Betatester
Offline



Posts: 1968
Joined: Aug 27th, 2005
Gender: Male
Re: How to shrink player/pawn
Reply #3 - Dec 17th, 2009 at 12:34am
Print Post  
This is mystery to me...It should technically work just by adjusting few things...yet it complains when I assign default const variable in.....it fails to compile. I don't get how roland or pcube made it to compile...don't get it.

Anyway also akcoop2 used shrinking item it was called potion, it made you very tiny.
  

People who accuse others of trolling are usually the biggest trolls themselves.
Back to top
YouTube  
IP Logged
 
Matrix224
God Member
*****
Offline



Posts: 736
Location: New York
Joined: Feb 20th, 2008
Gender: Male
Re: How to shrink player/pawn
Reply #4 - Dec 17th, 2009 at 1:12am
Print Post  
class ShrinkMe expands Pickup;

replication
{
Reliable if(role < role_authority)
ShrinkMe;
}

simulated exec function ShrinkMe(float i)
{
If(i < Owner.Default.Drawscale && i > 0)
{
Owner.drawscale = i;
Owner.SetCollisionSize(Owner.drawScale*Owner.Default.CollisionRadius,
Owner.drawscale*Owner.Default.CollisionHeight);      
}
else

Owner.drawscale = owner.default.drawscale;
Owner.SetCollisionSize(Owner.drawScale*Owner.Default.CollisionRadius,
Owner.drawscale*Owner.Default.CollisionHeight);      

}

This is just some made up class that would hopefully work.

The owner would type something like ShrinkMe 0.3
This would make them 0.3 drawscale, and set their collision to be even with their drawscale.
Also, they would not be able to go above their default drawscale or below 0. If their default was 1 and they typed 3 or anything less than or equal to 0, it would make it 1 instead.

- NOTE - This won't work with XCoop's players, due to the crouch code.
  
Back to top
IP Logged
 
Leo T_C_K
Betatester
Offline



Posts: 1968
Joined: Aug 27th, 2005
Gender: Male
Re: How to shrink player/pawn
Reply #5 - Dec 17th, 2009 at 1:18am
Print Post  
Wait....maybe I got how Pcube made it, by temporary altering the functions so he can assign constant variables.

Anyway thx Matrix...I hope that will work.
  

People who accuse others of trolling are usually the biggest trolls themselves.
Back to top
YouTube  
IP Logged
 
Matrix224
God Member
*****
Offline



Posts: 736
Location: New York
Joined: Feb 20th, 2008
Gender: Male
Re: How to shrink player/pawn
Reply #6 - Dec 17th, 2009 at 1:20am
Print Post  
Yeah I just modified it a bit, check it again if you want.
  
Back to top
IP Logged
 
Leo T_C_K
Betatester
Offline



Posts: 1968
Joined: Aug 27th, 2005
Gender: Male
Re: How to shrink player/pawn
Reply #7 - Dec 17th, 2009 at 1:47am
Print Post  
Thx...it works...I just added a small check so other pawns can't pick it up except the special ones.
Although still it woud be better if it shrinked it to collisionradius 17 and collisionheight 39, because I didn't want players to be smaller than that, but this is enough I guess and I am not sure how to limit it to collisionradius 17 and 39 this way.

But it doesn't matter, at last they will have advantage.
  

People who accuse others of trolling are usually the biggest trolls themselves.
Back to top
YouTube  
IP Logged
 
Matrix224
God Member
*****
Offline



Posts: 736
Location: New York
Joined: Feb 20th, 2008
Gender: Male
Re: How to shrink player/pawn
Reply #8 - Dec 17th, 2009 at 1:54am
Print Post  
Easy edit:


class ShrinkMe expands Pickup;

replication
{
Reliable if(role < role_authority)
ShrinkMe;
}

simulated exec function ShrinkMe()
{
Owner.drawscale = 0.5;
Owner.SetCollisionSize(17, 39);      
}
  
Back to top
IP Logged
 
Leo T_C_K
Betatester
Offline



Posts: 1968
Joined: Aug 27th, 2005
Gender: Male
Re: How to shrink player/pawn
Reply #9 - Dec 17th, 2009 at 2:06am
Print Post  
Yeah but I want them to get back to normal default size afterwards....and they can't do it this way.

But wait....I could have another exec command in there that would do it, let me try. with the Owner.default.collisionradius plus height in parenthesis, as you had in your old code. I didn't know you can add these at SetCollision, I thought only two numbers were possible.
  

People who accuse others of trolling are usually the biggest trolls themselves.
Back to top
YouTube  
IP Logged
 
Leo T_C_K
Betatester
Offline



Posts: 1968
Joined: Aug 27th, 2005
Gender: Male
Re: How to shrink player/pawn
Reply #10 - Dec 17th, 2009 at 2:22am
Print Post  
K so what I did now is

class ShrinkMe expands Pickup;

replication
{
Reliable if(role < role_authority)
ShrinkMe, GrowMe;
}

function PickupFunction(Pawn Other)
{
     if (( !Pawn(Owner).isA('MCoopMonster')))
           Destroy();
}

simulated exec function ShrinkMe()
{
Owner.drawscale = 0.5;
Owner.SetCollisionSize(17, 39);      
}

simulated exec function GrowMe()
{
Owner.drawscale = owner.default.drawscale;
Owner.SetCollisionSize(Owner.Default.CollisionRadius,Owner.Default.CollisionHeig
ht);      

}

defaultproperties
{
     PickupMessage=" "
}
  

People who accuse others of trolling are usually the biggest trolls themselves.
Back to top
YouTube  
IP Logged
 
Matrix224
God Member
*****
Offline



Posts: 736
Location: New York
Joined: Feb 20th, 2008
Gender: Male
Re: How to shrink player/pawn
Reply #11 - Dec 17th, 2009 at 2:45am
Print Post  
I was gonna ask actually if you wanted that but yours is fine (Y)
  
Back to top
IP Logged
 
Leo T_C_K
Betatester
Offline



Posts: 1968
Joined: Aug 27th, 2005
Gender: Male
Re: How to shrink player/pawn
Reply #12 - Dec 17th, 2009 at 3:58am
Print Post  
Yeah...what I meant with I was not sure how to do it this way was incorporating that within that one command itself..the one with integer value, but this is better since this way it sets them normal.

http://www.esnips.com/doc/4dbf2fa0-1d59-4f66-8a2b-81695f343490/PawnShrinker

The file is uploaded...works only for UT though. As he wanted it for UTMCoop.
« Last Edit: Dec 17th, 2009 at 9:08pm by Leo T_C_K »  

People who accuse others of trolling are usually the biggest trolls themselves.
Back to top
YouTube  
IP Logged
 
Psychomorph
Ex Member


Re: How to shrink player/pawn
Reply #13 - Dec 17th, 2009 at 12:01pm
Print Post  
Hey guys, thank you very much. This is a good community here. Cheesy

I hope Killerbee installs it on his server soon, so we can fieldtest it. Pitty it's UT only, but it's already more than you can ask for.

Thanks!
  
Back to top
 
IP Logged
 
Leo T_C_K
Betatester
Offline



Posts: 1968
Joined: Aug 27th, 2005
Gender: Male
Re: How to shrink player/pawn
Reply #14 - Dec 17th, 2009 at 4:48pm
Print Post  
Quote:
Hey guys, thank you very much. This is a good community here. Cheesy

I hope Killerbee installs it on his server soon, so we can fieldtest it. Pitty it's UT only, but it's already more than you can ask for.

Thanks!

I had to make it UT only because of mutator troubles, not working in UT properly, so I used some UT mutator specific functions, which don't work in Unreal the other way..
  

People who accuse others of trolling are usually the biggest trolls themselves.
Back to top
YouTube  
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint
Bookmarks: del.icio.us Digg Facebook Google Google+ Linked in reddit StumbleUpon Twitter Yahoo