AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CSGO/ANY]HexProps (Spawn models/props!) (https://forums.alliedmods.net/showthread.php?t=302631)

Papero 11-05-2017 03:11

[CSGO/ANY]HexProps (Spawn models/props!)
 
HexProps


https://img.shields.io/badge/License...le=flat-square https://img.shields.io/github/tag/He...le=flat-square https://img.shields.io/github/issues...le=flat-square


Features:
Code:

  1. Spawn Props

  2. Edit Props

  3. Move Props

  4. Save Props


Edit Menu
Code:

  1. Edit Transparency

  2. Edit Color

  3. Edit LifePoints

  4. Edit Consistency

  5. Edit Size(May not work with all models)


Extras


How to install
Code:

Just download the plugin from here and put the addons folder in your /GAME folder!
How to add more props
Code:

To add more models(props) just edit the props_list.txt file located in: /GAME/addons/sourcemod/configs/props, and add this:

       
Code:

       
    "MODEL_NAME"
    {
        "model"    "MODEL_PATH"
    }


Then save!

Todo / WIP / Bugs & Issues --> https://img.shields.io/github/issues...le=flat-square



Credits
Code:

  1. Boomix for model moving and ideas!

  2. Block_passes I took some parts from there & the models list.


Videos

Plugin Showcase: https://youtu.be/Y50XtEOQHxI
Add more models: https://youtu.be/W-TckH1I4l4


SourceCode on GitHub!

Download

Pavelas 11-09-2017 15:40

Re: [CSGO/ANY]HexProps (Spawn models/props!)
 
Hello, nice job!

I found a few bugs:

1) Sometimes when I remove the prop, accidentally another random prop is being removed.
I have no idea why it is happening, but this bug is very annoying.

2) Another bug, when you make your prop solid, you still able to drop weapons through it.


Suggestions:

1) Ability to add custom names to spawned props, in this case it would be much easier to find which prop disappeared.

Error log:

PHP Code:

L 11/09/2017 22:43:58: [SMException reportedProperty "m_vecOrigin" not found (entity 125/func_dustmotes)
L 11/09/2017 22:43:58: [SMBlaminghexprops.smx
L 11
/09/2017 22:43:58: [SMCall stack trace:
L 11/09/2017 22:43:58: [SM]   [0GetEntPropVector
L 11
/09/2017 22:43:58: [SM]   [1Line 513D:\Tools\BasicPawn\SourcePawn\include\hexstocks.inc::GetEntityOrigin
L 11
/09/2017 22:43:58: [SM]   [2Line 918D:\My Profile\Documents\HexProps\addons\sourcemod\scripting\hexprops.sp::FirstTimePress
L 11
/09/2017 22:43:58: [SM]   [3Line 861D:\My Profile\Documents\HexProps\addons\sourcemod\scripting\hexprops.sp::OnPlayerRunCmd 


Papero 11-10-2017 03:13

Re: [CSGO/ANY]HexProps (Spawn models/props!)
 
Quote:

Originally Posted by Pavelas (Post 2559457)
1) Sometimes when I remove the prop, accidentally another random prop is being removed.
I have no idea why it is happening, but this bug is very annoying.

Do you get any errors for this?, in the next round does the props reappears?
Maybe this is cause by saveing the ent index, instead the ent reference.

Quote:

Originally Posted by Pavelas (Post 2559457)
2) Another bug, when you make your prop solid, you still able to drop weapons through it.

I've no idea for why this is happening, I'll try to investigate.
Also here there's the same issue: https://forums.alliedmods.net/showthread.php?t=302669

Quote:

Originally Posted by Pavelas (Post 2559457)
Suggestions:

1) Ability to add custom names to spawned props, in this case it would be much easier to find which prop disappeared.

Also boomix suggested this, I will do this.


Quote:

Originally Posted by Pavelas (Post 2559457)
Error log:
PHP Code:

L 11/09/2017 22:43:58: [SMException reportedProperty "m_vecOrigin" not found (entity 125/func_dustmotes)
L 11/09/2017 22:43:58: [SMBlaminghexprops.smx
L 11
/09/2017 22:43:58: [SMCall stack trace:
L 11/09/2017 22:43:58: [SM]   [0GetEntPropVector
L 11
/09/2017 22:43:58: [SM]   [1Line 513D:\Tools\BasicPawn\SourcePawn\include\hexstocks.inc::GetEntityOrigin
L 11
/09/2017 22:43:58: [SM]   [2Line 918D:\My Profile\Documents\HexProps\addons\sourcemod\scripting\hexprops.sp::FirstTimePress
L 11
/09/2017 22:43:58: [SM]   [3Line 861D:\My Profile\Documents\HexProps\addons\sourcemod\scripting\hexprops.sp::OnPlayerRunCmd 


This should be fixed by saving the ent refence instead of the ent index...
I'll fix soon.



Thanks for the feedback.

Papero 11-10-2017 13:02

Re: [CSGO/ANY]HexProps (Spawn models/props!)
 
Quote:

Originally Posted by Pavelas (Post 2559457)
PHP Code:

L 11/09/2017 22:43:58: [SMException reportedProperty "m_vecOrigin" not found (entity 125/func_dustmotes)
L 11/09/2017 22:43:58: [SMBlaminghexprops.smx
L 11
/09/2017 22:43:58: [SMCall stack trace:
L 11/09/2017 22:43:58: [SM]   [0GetEntPropVector
L 11
/09/2017 22:43:58: [SM]   [1Line 513D:\Tools\BasicPawn\SourcePawn\include\hexstocks.inc::GetEntityOrigin
L 11
/09/2017 22:43:58: [SM]   [2Line 918D:\My Profile\Documents\HexProps\addons\sourcemod\scripting\hexprops.sp::FirstTimePress
L 11
/09/2017 22:43:58: [SM]   [3Line 861D:\My Profile\Documents\HexProps\addons\sourcemod\scripting\hexprops.sp::OnPlayerRunCmd 


Should be fixed within the last commit, please update it <,<
I also added a Prop name, it could be changed every round.

Lannister 12-06-2017 10:54

Re: [CSGO/ANY]HexProps (Spawn models/props!)
 
Hello! good job with your plugin! i wanted to ask you if you had this issue where you wanted to place a playermodel on a map, but when you want to move it you can't, also, when you select "remove prop" and you aim at the player model, it shows "no prop found" like it ignores totally the player model. I wonder if this is a normal behavior from this plugin (to allow to place player models as prop but don't allow us to move them or delete them)

EDIT: Seems to be working, but sadly it's really hard since you need to go directly inside the player model, spam E untill you "grab it" then it will allow you to move it.

And also what i've noticed, the "remove prop" doesn't seems to work, it always spam "no prop found"

Thanks!

Papero 12-07-2017 10:19

Re: [CSGO/ANY]HexProps (Spawn models/props!)
 
Thanks for the report!

Quote:

Originally Posted by Lannister (Post 2564791)
EDIT: Seems to be working, but sadly it's really hard since you need to go directly inside the player model, spam E untill you "grab it" then it will allow you to move it.

I'm having this issue too, I think it's because the hitbox of the "bones" of the player model.
Currently I have no idea if this could be fixed.

Quote:

Originally Posted by Lannister (Post 2564791)
And also what i've noticed, the "remove prop" doesn't seems to work, it always spam "no prop found"

I'll check, on my last test, it was ok.

Lannister 12-07-2017 11:29

Re: [CSGO/ANY]HexProps (Spawn models/props!)
 
Quote:

Originally Posted by Papero (Post 2564923)
Thanks for the report!


I'm having this issue too, I think it's because the hitbox of the "bones" of the player model.
Currently I have no idea if this could be fixed.


I'll check, on my last test, it was ok.

Maybe a good way to fix this issue would be like, instead of select the model by aiming at him, select him from the menu (there should be a list with all the models placed in map?), then be allow to move it with your mouse normally, i think it would be a good "fix", but anyway, maybe just feew people want to add player model like us!

Still, good job!

StormishJustice 03-08-2018 11:19

Re: [CSGO/ANY]HexProps (Spawn models/props!)
 
Hi! I like your plugin, are you going to make a version that works for TF2? I tried compiling it with spcomp but the /props command doesn't work, I even tried loading it again but it says that it's already loaded, I also tried using build.sh to compile it but I realized it's for sourcemod's linux build, it would be appreciated if you make the plugin support TF2, it's really neat!

Papero 03-28-2018 18:13

Re: [CSGO/ANY]HexProps (Spawn models/props!)
 
Quote:

Originally Posted by StormishJustice (Post 2581942)
Hi! I like your plugin, are you going to make a version that works for TF2? I tried compiling it with spcomp but the /props command doesn't work, I even tried loading it again but it says that it's already loaded, I also tried using build.sh to compile it but I realized it's for sourcemod's linux build, it would be appreciated if you make the plugin support TF2, it's really neat!

Can you post you [code]sm plugins list[/php] reply from server console?

I've never played TF2, but I'll try to help...

Sorry for late reply.

cravenge 03-29-2018 04:21

Re: [CSGO/ANY]HexProps (Spawn models/props!)
 
Hmm, I think the entities passing through the solid props bug is caused by the props having "m_CollisionGroup" netprop set to 0 or something else that excludes said entities from colliding with said props.


All times are GMT -4. The time now is 01:09.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.