StrataSource / Portal-2-Community-Edition

Task tracker for Portal 2: Community Edition
https://www.portal2communityedition.com
146 stars 3 forks source link

Feature: VScript method to remove an entity from the ground #1564

Open beepster4096 opened 8 months ago

beepster4096 commented 8 months ago

Which component should be improved?

Other

Describe your suggestion

Currently, trying to give the player upwards velocity from VScript while they are on the ground does not work. They stay stuck to the ground.

In code, it seems the correct way to solve this is to call SetGroundEntity(NULL), but this isn't exposed to vscript. Some way of doing this should be available as a vscript method on CBaseEntity.

TeamSpen210 commented 8 months ago

Elsewhere in code, I've seen a 1 unit upward teleport also used in these situations.