Post: [CODE] Get Models Name With BulletTrace
06-17-2015, 03:33 PM #1
Loz
Vault dweller
(adsbygoogle = window.adsbygoogle || []).push({}); aight, this is pretty simple & im quite sure its already been done in the past,
but its still very useful for .gsc creators & after i got asked for it earlier i decided to post this,
enough talking, ill let the code speak (works fine on both mp/zm)

    
ToggleTraceModel()
{
if(self.get_model==false)
{
self.get_model=true;
self thread TraceModel();
self iPrintlnBold("Model Name Gun ^2Enabled");
self iPrintln("Press [{+speed_throw}] On Objects");
}
else
{
self.get_model=false;
self notify("stop_get_model_name");
self iPrintlnBold("Model Name Gun ^1Disabled");
}
}

TraceModel()
{
self endon("disconnect");
self endon("stop_get_model_name");

for(;Winky Winky
{
if(self adsButtonPressed())
{
trace = bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*1000000,true,self);
model_name = trace["entity"].model;
self iPrintln("Model Name : ^2" + model_name);
wait 1;
}
wait 0.05;
}
}


Credits to whoever made something like this before

The following 11 users say thank you to Loz for this useful post:

-Numb, Buqsy, Full-Evil, gοd, HiddenHour, iRnZ, itsSorrow, Patrick, StonedYoda, xexDELL, xTiibo Modz
06-17-2015, 03:38 PM #2
Patrick
League Champion
great release
10-04-2015, 08:51 PM #3
What is this exactly?
10-04-2015, 09:16 PM #4
Patrick
League Champion
Originally posted by Al
What is this exactly?


you aim at a model and it tells you the model name so you can use it Smile
10-04-2015, 09:22 PM #5
release GSC for Azza menu
10-04-2015, 10:24 PM #6
Originally posted by 32085
you aim at a model and it tells you the model name so you can use it Smile


Like, if i aimed at an an94, would it tell me that it actually is an "An94_mp"?
10-04-2015, 11:14 PM #7
Patrick
League Champion
Originally posted by Al
Like, if i aimed at an an94, would it tell me that it actually is an "An94_mp"?


i dont know about weapons but most likely would Smile
10-05-2015, 01:36 AM #8
Originally posted by Al
What is this exactly?


Its no bumping
10-05-2015, 04:26 AM #9
anthonything
Space Ninja
Its funny, i actually have this code almost word for word in my hide and seek GSC. Lol. Great minds think alike
10-05-2015, 06:40 AM #10
BoatyMcBoatFace
Are you high?
Originally posted by anthonything View Post
Its funny, i actually have this code almost word for word in my hide and seek GSC. Lol. Great minds think alike


and so is the full code you probably took from iprofamilys cod4 post Dave

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo