game_text

Grab your favourite IDE and tinker with the innards of game engines

game_text

Postby TechieUK on Wed Jan 15, 2014 5:50 pm

I'm trying to make an entity based off of game_text by basically duplicating the file(s) under a different name. Where exactly is game_text located in the source? Does it even have it's own file? I've searched the entire solution for game_text and only found 2 results.
Also know as WILLAM; TechieUK is my old name. If you see WILLAM on Steam or ModDB, it's me.
User avatar
TechieUK
Regular
Regular
 
Joined: Sat Apr 13, 2013 4:29 pm

Re: game_text

Postby LordDz on Wed Jan 15, 2014 6:32 pm

"In code it is represented by class CGameText, defined in maprules.cpp. "
https://developer.valvesoftware.com/wiki/Game_text
=) =)
User avatar
LordDz
May Contain Skills
May Contain Skills
 
Joined: Mon Sep 01, 2008 12:28 pm
Location: Hammer Crash Logs

Re: game_text

Postby TechieUK on Wed Jan 15, 2014 8:24 pm

Ah, I missed that part :)
Also know as WILLAM; TechieUK is my old name. If you see WILLAM on Steam or ModDB, it's me.
User avatar
TechieUK
Regular
Regular
 
Joined: Sat Apr 13, 2013 4:29 pm

Re: game_text

Postby TechieUK on Thu Jan 16, 2014 3:02 pm

Alright env_game_hint is now an existing entity and it works great! Thanks.
Also know as WILLAM; TechieUK is my old name. If you see WILLAM on Steam or ModDB, it's me.
User avatar
TechieUK
Regular
Regular
 
Joined: Sat Apr 13, 2013 4:29 pm

Re: game_text

Postby LordDz on Thu Jan 16, 2014 3:15 pm

Will I get a cookie now? :)
User avatar
LordDz
May Contain Skills
May Contain Skills
 
Joined: Mon Sep 01, 2008 12:28 pm
Location: Hammer Crash Logs

Re: game_text

Postby TechieUK on Thu Jan 16, 2014 6:12 pm

Image

Or alternatively you can get millions of them here.
Also know as WILLAM; TechieUK is my old name. If you see WILLAM on Steam or ModDB, it's me.
User avatar
TechieUK
Regular
Regular
 
Joined: Sat Apr 13, 2013 4:29 pm

Re: game_text

Postby TechieUK on Sat Jan 18, 2014 7:43 pm

I have another question, how can I modify this to allow the picking up of ragdolls? I spent a few hours fiddling about with it, but I'm not sure where to allow the picking up of ragdolls.

Code: Select all
void CHL2_Player::PickupObject( CBaseEntity *pObject , bool bLimitMassAndSize )
{
   // can't pick up what you're standing on
   if ( GetGroundEntity() == pObject )
      return;
   
   if ( bLimitMassAndSize == true )
   {
      if ( CBasePlayer::CanPickupObject( pObject, 35, 128 ) == false )
          return;
   }

   // Can't be picked up if NPCs are on me
   if ( pObject->HasNPCsOnIt() )
      return;

   PlayerPickupObject( this, pObject );
}
Also know as WILLAM; TechieUK is my old name. If you see WILLAM on Steam or ModDB, it's me.
User avatar
TechieUK
Regular
Regular
 
Joined: Sat Apr 13, 2013 4:29 pm

Re: game_text

Postby LordDz on Sun Jan 19, 2014 5:45 pm

Are ragdolls treated as objects? As there is a difference between those and prop_physics..
User avatar
LordDz
May Contain Skills
May Contain Skills
 
Joined: Mon Sep 01, 2008 12:28 pm
Location: Hammer Crash Logs

Re: game_text

Postby TechieUK on Sun Jan 19, 2014 8:28 pm

I've got ai_force_serverside_ragdoll set to 1 by default so all my ragdolls are serverside, and you can't pick them up, so I'm gonna say no. They should be prop_ragdoll, I think.
Also know as WILLAM; TechieUK is my old name. If you see WILLAM on Steam or ModDB, it's me.
User avatar
TechieUK
Regular
Regular
 
Joined: Sat Apr 13, 2013 4:29 pm

Re: game_text

Postby Gary on Mon Jan 20, 2014 2:57 am

It shouldn't be hard. Look at how the super gravity gun does it.
Have a question related to modding or something I posted? Something that needs staff attention? I haven't been active lately, but feel free to PM me or message me on Steam(link below)

User avatar
Gary
Interlopers Staff
Interlopers Staff
 
Joined: Wed Dec 16, 2009 12:40 am
Location: USA, FL

Re: game_text

Postby TechieUK on Mon Jan 20, 2014 3:20 pm

Not a bad idea actually, I should probably search through the HL2 code more thoroughly before I ask.
Also know as WILLAM; TechieUK is my old name. If you see WILLAM on Steam or ModDB, it's me.
User avatar
TechieUK
Regular
Regular
 
Joined: Sat Apr 13, 2013 4:29 pm

Return to Programming

Who is online

Users browsing this forum: No registered users