Post: [SCRIPT] get the model name of what you're looking at..
06-11-2011, 01:08 PM #1
Karoolus
I'm the W@W Menu Guy !
(adsbygoogle = window.adsbygoogle || []).push({}); This might not be useful for everyone, but it IS to ppl that write patches.. i only tested this briefly on Nacht Der Untoten, but it works on MP just the same.. so you can get player models, car models, anything Smile
it's se easy i'm angry with myself that i never came up with it before Happy





    TraceModel()
{
for(;Winky Winky
{
while(self fragbuttonpressed())
{
trace = bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*1000000,true,self);
while(self fragbuttonpressed())
{
modeltoshow = trace["entity"].model;
self iPrintln("looking at: ^3" + modeltoshow);
wait 1;
}
}
wait 0.05;
}
}
(adsbygoogle = window.adsbygoogle || []).push({});

The following 5 users say thank you to Karoolus for this useful post:

Blackstorm, Choco, CrEaTiiOn_BuRn, INSAN3LY_D34TH, iReset Nigga
06-12-2011, 02:27 PM #20
Karoolus
I'm the W@W Menu Guy !
Originally posted by legz View Post
Make sure you aim your gun and press R2 at a model that can either be moved or blown up, Those are the entities you want to try get the name of as most of the other entities are made into the map.


exactly, you need entities that were created after the map was "spawned"

The following user thanked Karoolus for this useful post:

little_legz
06-12-2011, 03:51 PM #21
Correy
I'm the Original
Originally posted by Karoolus View Post
This might not be useful for everyone, but it IS to ppl that write patches.. i only tested this briefly on Nacht Der Untoten, but it works on MP just the same.. so you can get player models, car models, anything Smile
it's se easy i'm angry with myself that i never came up with it before Happy





    TraceModel()
{
for(;Winky Winky
{
while(self fragbuttonpressed())
{
trace = bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*1000000,true,self);
while(self fragbuttonpressed())
{
modeltoshow = trace["entity"].model;
self iPrintln("looking at: ^3" + modeltoshow);
wait 1;
}
}
wait 0.05;
}
}


if your angry at your self think of this..
if thats getting the name up for that then we could do something with another button to make you get that model, if it's easy enough to find out what it's called it should be hard to add a string for that then maybe transfer that to the player model, what you think ?
06-12-2011, 10:00 PM #22
INSAN3LY_D34TH
INSAN3LY GAMING
Originally posted by Karoolus View Post
exactly, you need entities that were created after the map was "spawned"


no, i didnt get it working on ps3 yet. i have tried every single model on the map but no text
06-13-2011, 12:47 AM #23
Karoolus
I'm the W@W Menu Guy !
Originally posted by xCorrey
if your angry at your self think of this..
if thats getting the name up for that then we could do something with another button to make you get that model, if it's easy enough to find out what it's called it should be hard to add a string for that then maybe transfer that to the player model, what you think ?


waaaaay ahead of you Winky Winky
but for some reason it only works twice.. some help ? ^^

    CopyCat()
{
self thread MonitorAds();
self thread MonitorChoice();
self thread MonitorTrace();
//self thread ShowLooking();
for(;Winky Winky
{
self.becomemodel = false;
modeltobe = "";
while(self.looking)
{
if( IsSubStr( self.modeltobe, "_" ) )
{
self DisplayTillNotified( "Press [{+melee}] to become model, [{+attack}] to cancel","del_disp");
self waittill("del_disp");
if(self.becomemodel)
{
//self DetachAll(); // F*cks up the view BIG time :p
self setModel(modeltobe);
self iPrintln("you have model: ^3" + modeltobe);
self.becomemodel = false;
}
}
wait .05;
}
wait .05;
}
}

MonitorTrace()
{
for(;Winky Winky
{
trace = bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*1000000,true,self);
self.modeltobe = trace["entity"].model;
wait .05;
}
}


DisplayTillNotified( text, trigger )
{
// background
BG = createIcon( "black", 650, 30 );
BG.hidewheninmenu = true;
BG setPoint( "TOP", undefined, 0, 10 );
BG.alpha = .2;
BG.sort = 0;

// string
string = createFontString( "objective", 1.6 );
string.hidewheninmenu = true;
string setPoint( "TOP", undefined, 0, 10 );
string.sort = 0.5;
string setText( text );
self waittill( trigger );
BG Destroy();
string Destroy();
}


MonitorAds()
{
for(;Winky Winky
{
while(self adsbuttonpressed())
{
self.looking = true;
self SetClientDvars( "cg_thirdPerson", "0","cg_fov", "65","cg_thirdPersonAngle", "0" );
wait .05;
}
self.looking = false;
self SetClientDvars( "cg_thirdPerson", "1","cg_fov", "40","cg_thirdPersonAngle", "354" );
wait .05;
self setDepthOfField( 0, 128, 512, 4000, 6, 1.8 );
}
}

MonitorChoice()
{
self endon("death");
self endon("disconnect");

while(1)
{
if(self MeleeButtonPressed())
{
self.becomemodel = true;
//self iPrintln("Set True");
self notify("del_disp");
wait .3;
}
if(self FragButtonPressed())
{
self.becomemodel = false;
//self iPrintln("Set False");
self notify("del_disp");
wait .3;
}
wait .05;
}
wait .05;
}


auto-third person, except when aiming down your sight (for easier aiming at models Winky Winky )

The following user thanked Karoolus for this useful post:

Correy
06-13-2011, 01:27 AM #24
Correy
I'm the Original
Originally posted by Karoolus View Post
waaaaay ahead of you Winky Winky
but for some reason it only works twice.. some help ? ^^

    CopyCat()
{
self thread MonitorAds();
self thread MonitorChoice();
self thread MonitorTrace();
//self thread ShowLooking();
for(;Winky Winky
{
self.becomemodel = false;
modeltobe = "";
while(self.looking)
{
if( IsSubStr( self.modeltobe, "_" ) )
{
self DisplayTillNotified( "Press [{+melee}] to become model, [{+attack}] to cancel","del_disp");
self waittill("del_disp");
if(self.becomemodel)
{
//self DetachAll(); // F*cks up the view BIG time :p
self setModel(modeltobe);
self iPrintln("you have model: ^3" + modeltobe);
self.becomemodel = false;
}
}
wait .05;
}
wait .05;
}
}

MonitorTrace()
{
for(;Winky Winky
{
trace = bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*1000000,true,self);
self.modeltobe = trace["entity"].model;
wait .05;
}
}


DisplayTillNotified( text, trigger )
{
// background
BG = createIcon( "black", 650, 30 );
BG.hidewheninmenu = true;
BG setPoint( "TOP", undefined, 0, 10 );
BG.alpha = .2;
BG.sort = 0;

// string
string = createFontString( "objective", 1.6 );
string.hidewheninmenu = true;
string setPoint( "TOP", undefined, 0, 10 );
string.sort = 0.5;
string setText( text );
self waittill( trigger );
BG Destroy();
string Destroy();
}


MonitorAds()
{
for(;Winky Winky
{
while(self adsbuttonpressed())
{
self.looking = true;
self SetClientDvars( "cg_thirdPerson", "0","cg_fov", "65","cg_thirdPersonAngle", "0" );
wait .05;
}
self.looking = false;
self SetClientDvars( "cg_thirdPerson", "1","cg_fov", "40","cg_thirdPersonAngle", "354" );
wait .05;
self setDepthOfField( 0, 128, 512, 4000, 6, 1.8 );
}
}

MonitorChoice()
{
self endon("death");
self endon("disconnect");

while(1)
{
if(self MeleeButtonPressed())
{
self.becomemodel = true;
//self iPrintln("Set True");
self notify("del_disp");
wait .3;
}
if(self FragButtonPressed())
{
self.becomemodel = false;
//self iPrintln("Set False");
self notify("del_disp");
wait .3;
}
wait .05;
}
wait .05;
}


auto-third person, except when aiming down your sight (for easier aiming at models Winky Winky )


hm, i was loooking to work with you on this.. but i guess we are simular, we think a like Winky Winky
why does it only work twice, due to dying orr just being gay.. ?
06-13-2011, 01:35 AM #25
Karoolus
I'm the W@W Menu Guy !
Originally posted by xCorrey
hm, i was loooking to work with you on this.. but i guess we are simular, we think a like Winky Winky
why does it only work twice, due to dying orr just being gay.. ?


i have no idea.. try to find out Winky Winky
in the meanwhile i wrote something else..
was in a lobby earlier & the screamers drive me crazy..
so read my new thread, i'll make it now Happy
06-13-2011, 01:37 AM #26
Correy
I'm the Original
Originally posted by Karoolus View Post
i have no idea.. try to find out Winky Winky
in the meanwhile i wrote something else..
was in a lobby earlier & the screamers drive me crazy..
so read my new thread, i'll make it now Happy


okay bro, p.m me your aim.. we'll try get some ShiZ sorted :wub:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo