Raised This Month: $ Target: $400
 0% 

[CS:GO] Is it possible to make carried hostages get hurt?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cracken
Junior Member
Join Date: Apr 2020
Old 04-25-2020 , 10:38   [CS:GO] Is it possible to make carried hostages get hurt?
Reply With Quote #1

Hostages only seem to have hitboxes/get hit when on the ground, not when carried around. Can I change that?

Thanks.
Cracken is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-25-2020 , 13:46   Re: [CS:GO] Is it possible to make carried hostages get hurt?
Reply With Quote #2

It's very tricky one.
Code:
Searching for entities with class/target name containing substring: 'hostage'
   'func_hostage_rescue' : '' (entindex 462)
   'func_hostage_rescue' : '' (entindex 463)
   'info_hostage_rescue_zone_hint' : '' (entindex 167)
   'info_hostage_rescue_zone_hint' : '' (entindex 168)
   'hostage_entity' : '' (entindex 360)
   'hostage_entity' : '' (entindex 441)
Found 6 matches.
L 04/25/2020 - 17:25:05: [basecommands.smx] "Bacardi<5><STEAM_1:1:14163588><>" changed cvar (cvar "bot_stop") (value "1")
L 04/25/2020 - 17:25:08: [basecommands.smx] "Bacardi<5><STEAM_1:1:14163588><>" changed cvar (cvar "bot_stop") (value "0")
CSceneEntity::GenerateSceneForSound:  Couldn't determine duration of hostage.startfollowct
AutoGenerated(hostage.startfollowct) missing from scenes.image
Server event "hostage_follows", Tick 11455:
- "userid" = "6"
- "hostage" = "360"
Server event "player_footstep", Tick 11495:
- "userid" = "6"
Server event "player_footstep", Tick 11520:
- "userid" = "6"
L 04/25/2020 - 17:25:13: [basecommands.smx] "Bacardi<5><STEAM_1:1:14163588><>" changed cvar (cvar "bot_stop") (value "1")
Searching for entities with class/target name containing substring: 'hostage'
   'func_hostage_rescue' : '' (entindex 462)
   'func_hostage_rescue' : '' (entindex 463)
   'info_hostage_rescue_zone_hint' : '' (entindex 167)
   'info_hostage_rescue_zone_hint' : '' (entindex 168)
   'hostage_entity' : '' (entindex 360)
   'hostage_entity' : '' (entindex 441)
   'hostage_carriable_prop' : '' (entindex 160)
Found 7 matches.
When rescue hostage_entity, hostage_entity become invisible, will travel between CT's legs.
In sametime, hostage_carriable_prop appear, attach to CT's back.

Don't know, can you change solid of that carry model, it not have collision box.

Takes too much time of me to figure out.
__________________
Do not Private Message @me
Bacardi is offline
Cracken
Junior Member
Join Date: Apr 2020
Old 04-25-2020 , 15:56   Re: [CS:GO] Is it possible to make carried hostages get hurt?
Reply With Quote #3

Quote:
Originally Posted by Bacardi View Post
It's very tricky one.
Code:
Searching for entities with class/target name containing substring: 'hostage'
   'func_hostage_rescue' : '' (entindex 462)
   'func_hostage_rescue' : '' (entindex 463)
   'info_hostage_rescue_zone_hint' : '' (entindex 167)
   'info_hostage_rescue_zone_hint' : '' (entindex 168)
   'hostage_entity' : '' (entindex 360)
   'hostage_entity' : '' (entindex 441)
Found 6 matches.
L 04/25/2020 - 17:25:05: [basecommands.smx] "Bacardi<5><STEAM_1:1:14163588><>" changed cvar (cvar "bot_stop") (value "1")
L 04/25/2020 - 17:25:08: [basecommands.smx] "Bacardi<5><STEAM_1:1:14163588><>" changed cvar (cvar "bot_stop") (value "0")
CSceneEntity::GenerateSceneForSound:  Couldn't determine duration of hostage.startfollowct
AutoGenerated(hostage.startfollowct) missing from scenes.image
Server event "hostage_follows", Tick 11455:
- "userid" = "6"
- "hostage" = "360"
Server event "player_footstep", Tick 11495:
- "userid" = "6"
Server event "player_footstep", Tick 11520:
- "userid" = "6"
L 04/25/2020 - 17:25:13: [basecommands.smx] "Bacardi<5><STEAM_1:1:14163588><>" changed cvar (cvar "bot_stop") (value "1")
Searching for entities with class/target name containing substring: 'hostage'
   'func_hostage_rescue' : '' (entindex 462)
   'func_hostage_rescue' : '' (entindex 463)
   'info_hostage_rescue_zone_hint' : '' (entindex 167)
   'info_hostage_rescue_zone_hint' : '' (entindex 168)
   'hostage_entity' : '' (entindex 360)
   'hostage_entity' : '' (entindex 441)
   'hostage_carriable_prop' : '' (entindex 160)
Found 7 matches.
When rescue hostage_entity, hostage_entity become invisible, will travel between CT's legs.
In sametime, hostage_carriable_prop appear, attach to CT's back.

Don't know, can you change solid of that carry model, it not have collision box.

Takes too much time of me to figure out.
Oh well, I really wanted my mod to have hostage human shields. Anyway, how did you do the entity search? I'm new to modding.
Cracken is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-25-2020 , 17:08   Re: [CS:GO] Is it possible to make carried hostages get hurt?
Reply With Quote #4

That is in game own system,
sv_cheats 1
find_ent hostage
find_ent weapon
find_ent _
__________________
Do not Private Message @me
Bacardi is offline
Cracken
Junior Member
Join Date: Apr 2020
Old 04-26-2020 , 15:15   Re: [CS:GO] Is it possible to make carried hostages get hurt?
Reply With Quote #5

I think I found a way, tell me if I'm right:

Attach a prop_dynamic that looks like a hostage being grabbed from behind by the player (with a struggling animation), whenever a player grabs a hostage_entity with E/+use, as well as destroy hostage_carriable_prop simultaneously. Once this prop_dynamic dies/breaks (give it 100 HP), kill the real hostage_entity attached to the player invisibly, making it visible before killing it if needed.

Do you think this is possible?
Cracken is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-26-2020 , 15:47   Re: [CS:GO] Is it possible to make carried hostages get hurt?
Reply With Quote #6

Maybe...

You could try test:
SDKHooks ontakedamage to that hostage_carriable_prop, does it work?
If not, then try dynamic prop...
__________________
Do not Private Message @me
Bacardi is offline
Cracken
Junior Member
Join Date: Apr 2020
Old 04-26-2020 , 16:11   Re: [CS:GO] Is it possible to make carried hostages get hurt?
Reply With Quote #7

Quote:
Originally Posted by Bacardi View Post
Maybe...

You could try test:
SDKHooks ontakedamage to that hostage_carriable_prop, does it work?
If not, then try dynamic prop...
I'm not sure but I want to use hostages as human shields, and unless I can change the placement and pose of hostage_carriable_prop, that wouldn't work.
Cracken is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:34.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode